23 lines
517 B
Nix
23 lines
517 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 inferred;
|
||
|
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;
|
||
|
};
|
||
|
}
|