From f64b7b18d736dd46911b89b94f86be15b5325a90 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 19 Apr 2021 15:51:50 +0200 Subject: [PATCH] home: setup flameshot --- base/gui-programs.nix | 1 - home/default.nix | 1 + home/flameshot.nix | 13 +++++++++++++ home/x/i3.nix | 5 +++-- 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 home/flameshot.nix diff --git a/base/gui-programs.nix b/base/gui-programs.nix index 62b386c..8d73749 100644 --- a/base/gui-programs.nix +++ b/base/gui-programs.nix @@ -6,7 +6,6 @@ emacsPgtkGcc feh firefox - flameshot pavucontrol slack spotify diff --git a/home/default.nix b/home/default.nix index c9a4a7e..abf442e 100644 --- a/home/default.nix +++ b/home/default.nix @@ -2,6 +2,7 @@ { imports = [ ./emacs.nix + ./flameshot.nix ./x ]; diff --git a/home/flameshot.nix b/home/flameshot.nix new file mode 100644 index 0000000..359fc8c --- /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 autolaunch"; + }; + + config.services.flameshot = lib.mkIf cfg.enable { + enable = true; + }; +} diff --git a/home/x/i3.nix b/home/x/i3.nix index 2c47281..9a76351 100644 --- a/home/x/i3.nix +++ b/home/x/i3.nix @@ -27,8 +27,9 @@ let in { config = lib.mkIf isEnabled { - # FIXME: enable flameshot when added - # my.home = {}; + my.home = { + flameshot.enable = true; + }; xsession.windowManager.i3 = { enable = true;