home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8864f73da6804844b65f8bea3d0d036bcbb77fab
parent de4ed539b9d6641c2d962b74e468ae0c8cdd7326
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue,  2 Jul 2019 20:00:07 +0200

profiles.emacs: add a capture option…

… and make it default on profiles.desktop.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmachines/naruhodo.nix | 1+
Mmodules/profiles/desktop.nix | 1+
Mmodules/profiles/emacs.nix | 7++++++-
3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/machines/naruhodo.nix b/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; diff --git a/modules/profiles/desktop.nix b/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 = '' diff --git a/modules/profiles/emacs.nix b/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 {