diff options
Diffstat (limited to 'modules/gpg/default.nix')
| -rw-r--r-- | modules/gpg/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/gpg/default.nix b/modules/gpg/default.nix new file mode 100644 index 0000000..85682b6 --- /dev/null +++ b/modules/gpg/default.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.modules.gpg; + + inherit (lib) mkEnableOption mkOption mkIf types; +in +{ + options.modules.gpg = { + enable = mkEnableOption "gpg"; + }; + + config = mkIf cfg.enable { + services.gpg-agent = { + enable = true; + # TODO: look into forwarding and extra socket, seems useful + enableBashIntegration = true; + enableZshIntegration = true; + # enableNushellIntegration = true; + enableSshSupport = true; + noAllowExternalCache = true; + pinentryPackage = pkgs.pinentry-qt; +# sshKeys = [ "36663E191B00E51513F90FA5CF2BCE8461C297CD" ]; + }; + }; +} |