User settings restructured

This commit is contained in:
Bryan Ramos 2024-01-28 07:35:34 -05:00
parent fce12d274c
commit 2881653ec5
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
6 changed files with 51 additions and 52 deletions

View file

@ -3,19 +3,13 @@
with lib;
let
cfg = config.modules.gpg;
isBryan = config.user.name == "bryan";
in
{ options.modules.gpg = { enable = mkEnableOption "gpg"; };
config = mkIf cfg.enable {
programs.gpg = {
enable = true;
publicKeys = if isBryan then [
{
text = import ./config/pubKey.nix;
trust = 5;
}
] else [];
publicKeys = [ config.user.pgpKey ];
};
services.gpg-agent = {