This commit is contained in:
Bryan Ramos 2024-05-12 12:01:13 -04:00
parent ff5a0fe6a3
commit 929dbf8c43
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
16 changed files with 74 additions and 61 deletions

View file

@ -6,6 +6,7 @@ let
in
{ options.modules.user.security = { enable = mkEnableOption "user.security"; };
imports = [ ./modules ];
config = mkIf cfg.enable {
home.packages = with pkgs; [
pass

View file

@ -0,0 +1,5 @@
{
imports = [
./gpg
];
}

View file

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