61 lines
No EOL
1.6 KiB
Nix
61 lines
No EOL
1.6 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";
|
|
};
|
|
|
|
home.file.".gnupg/gpg-agent.conf".text = ''
|
|
pinentry-program /run/current-system/sw/bin/pinentry-curses
|
|
'';
|
|
|
|
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"
|
|
aliases = [ "postmaster@sysctl.io" ];
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |