This commit is contained in:
Ray Andrew 2024-11-04 01:10:02 -06:00
parent 676d39d61f
commit be39ff9e2d
4 changed files with 37 additions and 0 deletions

View file

@ -84,6 +84,10 @@ in
showSignature = "append";
};
passwordCommand = "${cat} ${config.sops.secrets."personal/password".path}";
gpg = {
key = "1913ECC8FD7076BC8330E11607AA5254804C009F";
signByDefault = true;
};
smtp = {
host = "smtp.gmail.com";
};
@ -120,6 +124,7 @@ in
named-mailboxes "${mailboxName}/important" =Important
named-mailboxes "${mailboxName}/trash" =Trash
named-mailboxes "${mailboxName}/archive" =Archive
set pgp_sign_as = 0x07AA5254804C009F
'';
};
};
@ -137,6 +142,10 @@ in
showSignature = "append";
};
passwordCommand = "${cat} ${config.sops.secrets."uchicago/password".path}";
gpg = {
key = "1913ECC8FD7076BC8330E11607AA5254804C009F";
signByDefault = true;
};
smtp = {
host = "127.0.0.1";
port = 1025;
@ -185,6 +194,7 @@ in
named-mailboxes "${mailboxName}/trash" =Trash
named-mailboxes "${mailboxName}/archive" =Archive
named-mailboxes "${mailboxName}/teaching" =Teaching
set pgp_sign_as = 0x07AA5254804C009F
'';
};
};

View file

@ -31,7 +31,17 @@
]
++ (lib.attrValues config.custom.shell.packages);
services = {
gpg-agent = {
enable = true;
enableSshSupport = true;
};
};
programs = {
gpg = {
enable = true;
};
bat = {
enable = true;
extraPackages = [

View file

@ -12,6 +12,7 @@
./fonts.nix
./fingerprint.nix
./gnome.nix
./gnupg.nix
./impermanence.nix
./kde.nix
./keyd.nix

16
src/nixos/gnupg.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, config, lib, ... }:
{
programs.gnupg = {
agent = {
enable = true;
enableSSHSupport = true;
};
};
custom.persist = {
home.directories = [
".gnupg"
];
};
}