This commit is contained in:
Bryan Ramos 2024-02-28 15:45:10 -05:00
parent 036db0b3b9
commit 203170a88f
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
66 changed files with 169 additions and 54 deletions

View file

@ -0,0 +1,22 @@
{ lib, config, ... }:
with lib;
let
cfg = config.modules.gpg;
in
{ options.modules.gpg = { enable = mkEnableOption "gpg"; };
config = mkIf cfg.enable {
programs.gpg = {
enable = true;
publicKeys = [ config.user.pgpKey ];
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableBashIntegration = true;
pinentryFlavor = "tty";
};
};
}