From ebf6d4bc85aba41d6ef2aa716a242c74ece9258d Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 13 Feb 2024 00:10:19 -0600 Subject: [PATCH] feat(nix-hm): enable `gpg-agent` user service --- config/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/config/default.nix b/config/default.nix index 8b325ff2..af232a3f 100644 --- a/config/default.nix +++ b/config/default.nix @@ -148,6 +148,13 @@ in { }; programs = { + gpg = { + enable = true; + scdaemonSettings = { + pcsc-driver = "/usr/lib/libpcsclite.so"; + disable-ccid = true; + }; + }; firefox = { enable = true; package = pkgs.firefox-devedition; @@ -210,6 +217,20 @@ in { cliphist.enable = true; easyeffects.enable = true; opensnitch-ui.enable = true; + gpg-agent = { + enable = true; + enableSshSupport = true; + enableZshIntegration = true; + maxCacheTtl = 14400; + maxCacheTtlSsh = 14400; + sshKeys = [ + "530D3EC95C32AB9EC33714AAF865738D6E77680A" + ]; + extraConfig = '' + pinentry-program /usr/bin/pinentry-gtk-2 + allow-loopback-pinentry + ''; + }; }; systemd.user = {