88 lines
2.1 KiB
Nix
88 lines
2.1 KiB
Nix
{ ... }: {
|
|
programs.git = {
|
|
userName = "albert";
|
|
userEmail = "albert@sysctl.io";
|
|
extraConfig = {
|
|
# core.askPass = false;
|
|
credential.helper = "cache --timeout=25920000";
|
|
user.signingkey = "48FBC3335A26DED6";
|
|
commit.gpgsign = "true";
|
|
};
|
|
};
|
|
|
|
programs.bash.sessionVariables = {
|
|
# SOPS comma delimited list of GPG keys allowed to edit files
|
|
SOPS_PGP_FP = "4A89D6B44B7E423B647C7AE848FBC3335A26DED6";
|
|
PGP_KEY_ID = "48FBC3335A26DED6";
|
|
};
|
|
|
|
programs.fish.shellInit = ''
|
|
set SOPS_PGP_FP 4A89D6B44B7E423B647C7AE848FBC3335A26DED6
|
|
set PGP_KEY_ID 48FBC3335A26DED6
|
|
'';
|
|
|
|
sops = {
|
|
gnupg.home = "~/.gnupg/";
|
|
gnupg.sshKeyPaths = [];
|
|
};
|
|
|
|
programs.gpg.publicKeys = [
|
|
{ # Albert Copeland <albert@sysctl.io> 2024
|
|
source = ../../../keys/users/albert.asc;
|
|
trust = "ultimate";
|
|
}
|
|
];
|
|
|
|
accounts = {
|
|
calendar = {
|
|
accounts."Nextcloud" = {
|
|
name = "Nextcloud";
|
|
remote = {
|
|
type = "caldav";
|
|
url = "https://cloud.sysctl.io/remote.php/dav";
|
|
userName = "albert";
|
|
};
|
|
};
|
|
};
|
|
email = {
|
|
accounts."Albert Copeland" = {
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = [ "Default" ];
|
|
};
|
|
userName = "albert@sysctl.io";
|
|
primary = true;
|
|
address = "albert@sysctl.io";
|
|
passwordCommand = "/run/current-system/sw/bin/cat /run/secrets/email_password";
|
|
realName = "Albert J. Copeland";
|
|
signature = {
|
|
showSignature = "append";
|
|
text = ''
|
|
Albert J. Copeland
|
|
albert@sysctl.io
|
|
PGP: 48FBC3335A26DED6
|
|
'';
|
|
};
|
|
gpg = {
|
|
encryptByDefault = true;
|
|
key = "48FBC3335A26DED6";
|
|
signByDefault = true;
|
|
};
|
|
imap = {
|
|
host = "sysctl.io";
|
|
tls = {
|
|
enable = true;
|
|
useStartTls = true;
|
|
};
|
|
};
|
|
smtp = {
|
|
host = "sysctl.io";
|
|
tls = {
|
|
enable = true;
|
|
useStartTls = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|