From 0a7afa2d1e576f05253b62c6b17e5e4873fbdebc Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Tue, 4 Aug 2026 20:01:06 +0530 Subject: feat: moved gpg data directory, other gopass ssh keys, script builder - Using ~/.local/share/gnupg/ for storing the data for gnupg, and made the necessary changes in all places to that effect - Additional ssh keys can be added to gopass under ssh/, which is on top of the git servers that already existed - Using pkgs.writeShellApplication for creating the scripts, stopped setting path for each dependency (creating a long PATH variable and thus finding binaries may take longer), instead using the inbuild dependency (runtimeInputs) for the scripts --- modules/security/gpg/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/security/gpg/default.nix') diff --git a/modules/security/gpg/default.nix b/modules/security/gpg/default.nix index cd77549..88c57d1 100644 --- a/modules/security/gpg/default.nix +++ b/modules/security/gpg/default.nix @@ -21,6 +21,11 @@ config = lib.mkIf config.security.gpg.enable { programs.gpg = { enable = true; + homedir = "${config.xdg.dataHome}/gnupg"; + }; + + home.sessionVariables = { + GNUPGHOME = config.programs.gpg.homedir; }; services.gpg-agent = { -- cgit v1.2.3