From e6fb00ce9a546f44b0d889bf1ce8ab2dc1a28820 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 5 Apr 2021 01:38:32 +0000 Subject: [PATCH] home: add flameshot --- home/default.nix | 1 + home/flameshot.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 home/flameshot.nix diff --git a/home/default.nix b/home/default.nix index 77d54ae..e47940d 100644 --- a/home/default.nix +++ b/home/default.nix @@ -4,6 +4,7 @@ ./bat.nix ./direnv.nix ./documentation.nix + ./flameshot.nix ./git ./gpg.nix ./htop.nix diff --git a/home/flameshot.nix b/home/flameshot.nix new file mode 100644 index 0000000..a9a60a8 --- /dev/null +++ b/home/flameshot.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: +let + cfg = config.my.home.flameshot; +in +{ + options.my.home.flameshot = with lib; { + enable = mkEnableOption "flameshot configuration"; + }; + + config.services.flameshot = lib.mkIf cfg.enable { + enable = true; + }; +}