Commit 8864f73da680

Vincent Demeester <vincent@sbr.pm>
2019-07-02 20:00:07
profiles.emacs: add a capture option…
… and make it default on profiles.desktop. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent de4ed53
Changed files (3)
machines/naruhodo.nix
@@ -22,6 +22,7 @@
     enable = true;
     texlive = false;
     daemonService = true;
+    capture = true;
   };
   # FIXME(vdemeester) move this to the bootstrap shell
   # xdg.configFile."user-dirs.dirs".source = ../modules/profiles/assets/xorg/user-dirs.dirs;
modules/profiles/desktop.nix
@@ -43,6 +43,7 @@ in
   };
   config = mkIf cfg.enable {
     profiles.gpg.enable = true;
+    profiles.emacs.capture = true;
     xsession = mkIf cfg.xsession.enable {
       enable = true;
       initExtra = ''
modules/profiles/emacs.nix
@@ -17,6 +17,11 @@ in
         description = "Enable emacs profile";
         type = types.bool;
       };
+      capture = mkOption {
+        default = false;
+        description = "Enable capture script(s)";
+        type = types.bool;
+      };
       daemonService = mkOption {
         default = true;
         description = "Enable emacs daemon service";
@@ -206,7 +211,7 @@ in
         ]);
       };
     }
-    (mkIf config.profiles.desktop.enable {
+    (mkIf config.profiles.emacs.capture {
       home.packages = with pkgs; [ wmctrl capture ];
     })
     (mkIf config.services.gpg-agent.enable {