summaryrefslogtreecommitdiff
path: root/modules/programs/gnupg.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-30 16:40:58 -0700
committerFuwn <[email protected]>2024-08-30 16:40:58 -0700
commit52306bb5f72d31012e47cdc9735836f34129a2ec (patch)
tree8ff9f9a55485c71b25fe85fc46de6d780c6e0fed /modules/programs/gnupg.nix
parentupdate (diff)
downloadnixos-config-52306bb5f72d31012e47cdc9735836f34129a2ec.tar.xz
nixos-config-52306bb5f72d31012e47cdc9735836f34129a2ec.zip
update
Diffstat (limited to 'modules/programs/gnupg.nix')
-rw-r--r--modules/programs/gnupg.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/programs/gnupg.nix b/modules/programs/gnupg.nix
new file mode 100644
index 0000000..604781d
--- /dev/null
+++ b/modules/programs/gnupg.nix
@@ -0,0 +1,16 @@
+{ pkgs, ... }:
+{
+ programs.gnupg.agent = {
+ enable = true;
+ enableSSHSupport = true;
+ pinentryPackage = pkgs.pinentry-curses;
+
+ settings = {
+ enable-ssh-support = "";
+ ttyname = "$GPG_TTY";
+ default-cache-ttl = 60;
+ max-cache-ttl = 120;
+ allow-loopback-pinentry = "";
+ };
+ };
+}