summaryrefslogtreecommitdiff
path: root/modules/home-manager/personal/environment.nix
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2023-03-02 18:36:54 +0100
committerQuentin Aristote <quentin@aristote.fr>2023-03-02 18:56:30 +0100
commitfeb03b9630430af407dc078fb18d7a7d6d17e101 (patch)
treec026447e280f3827bdcbfba461f0ff41f7044d1a /modules/home-manager/personal/environment.nix
parent1fab147b27c9ccfb278d6ab3ec08f52f57129eea (diff)
home: set up gpg properly
Diffstat (limited to 'modules/home-manager/personal/environment.nix')
-rw-r--r--modules/home-manager/personal/environment.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/home-manager/personal/environment.nix b/modules/home-manager/personal/environment.nix
index 7518c33..3783400 100644
--- a/modules/home-manager/personal/environment.nix
+++ b/modules/home-manager/personal/environment.nix
@@ -16,4 +16,12 @@
};
sessionVariables = { CDPATH = "~"; };
};
+
+ services.gpg-agent = {
+ enableBashIntegration = lib.mkDefault config.programs.bash.enable;
+ pinentryFlavor =
+ lib.mkDefault (if config.personal.gui.enable then "gtk2" else "tty");
+ grabKeyboardAndMouse =
+ lib.mkDefault false; # insecure, but necessary with keepass auto-type
+ };
}