23 lines
514 B
Nix
23 lines
514 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.snowhawk.flameshot;
|
|
in
|
|
{
|
|
options.snowhawk.flameshot = {
|
|
enable = lib.mkEnableOption "flameshot home-manager module";
|
|
|
|
config = lib.mkOption {
|
|
type = with lib.types; attrsOf attrs;
|
|
description = "the flameshot config as an attrs of attrs";
|
|
default = { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [ flameshot ];
|
|
|
|
xdg.configFile."flameshot/flameshot.ini" = lib.generators.toINI { } cfg.config;
|
|
};
|
|
}
|