From 08d4be5b51bb595e55555cc93c47f7adc77ed1c3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 22 Sep 2024 15:15:46 -0700 Subject: core: move harware and software to desktop --- modules/desktop/software/access/gnupg.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/desktop/software/access/gnupg.nix (limited to 'modules/desktop/software/access/gnupg.nix') diff --git a/modules/desktop/software/access/gnupg.nix b/modules/desktop/software/access/gnupg.nix new file mode 100644 index 0000000..e60da30 --- /dev/null +++ b/modules/desktop/software/access/gnupg.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + pinentryPackage = pkgs.pinentry-curses; + enableExtraSocket = true; + enableBrowserSocket = true; + + settings = { + enable-ssh-support = ""; + ttyname = "$GPG_TTY"; + default-cache-ttl = 34560000; # 60 + max-cache-ttl = 34560000; # 120 + allow-loopback-pinentry = ""; + }; + }; +} -- cgit v1.2.3