nixos-config/home/flameshot.nix

22 lines
290 B
Nix
Raw Permalink Normal View History

2022-04-10 11:54:58 +02:00
{
config,
lib,
...
}: let
inherit
(lib)
2022-01-11 16:08:21 +01:00
mkEnableOption
mkIf
2022-04-10 11:54:58 +02:00
;
2022-01-11 16:08:21 +01:00
2021-04-19 15:51:50 +02:00
cfg = config.my.home.flameshot;
2022-04-10 11:54:58 +02:00
in {
2022-01-11 16:08:21 +01:00
options.my.home.flameshot = {
2021-04-19 15:51:50 +02:00
enable = mkEnableOption "flameshot autolaunch";
};
2022-01-11 16:08:21 +01:00
config.services.flameshot = mkIf cfg.enable {
2021-04-19 15:51:50 +02:00
enable = true;
};
}