nix/home-manager/users/albert/default.nix
2024-02-13 08:24:37 +09:00

56 lines
No EOL
1.4 KiB
Nix

{ config, pkgs, ... }: {
programs.git = {
userName = "albert";
userEmail = "albert@sysctl.io";
extraConfig = {
# core.askPass = false;
credential.helper = "cache --timeout=25920000";
user.signingkey = "64F6C4EB46C4543A";
commit.gpgsign = "true";
};
};
programs.bash.sessionVariables = {
# SOPS comma delimited list of GPG keys allowed to edit files
SOPS_PGP_FP = "D98BBC6C9A27324654C2D8C464F6C4EB46C4543A";
};
accounts = {
email = {
accounts."sysctl" = {
thunderbird.enable = true;
userName = "albert";
primary = true;
address = "albert@sysctl.io";
# password
# https://nix-community.github.io/home-manager/options.html#opt-accounts.email.accounts._name_.passwordCommand
# password_command = "cat /var/run/sysctl-email"
realName = "Albert J. Copeland";
signature = ''
Albert J. Copeland
albert@sysctl.io
PGP: 64F6C4EB46C4543A
'';
gpg = {
encryptByDefault = true;
key = "64F6C4EB46C4543A";
signByDefault = true;
};
imap = {
host = "sysctl.io";
tls = {
enable = true;
useStartTls = true;
};
};
smtp = {
host = "sysctl.io";
tls = {
enable = true;
useStartTls = true;
};
};
};
};
};
}