feat(home): Configure alex@jakalx.net account
This commit is contained in:
parent
36a0e575aa
commit
a5e131cb3c
1 changed files with 31 additions and 20 deletions
|
|
@ -4,7 +4,29 @@
|
|||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
mkAccount =
|
||||
addr:
|
||||
let
|
||||
domain = lib.lists.elemAt (lib.strings.splitString "@" addr) 1;
|
||||
in
|
||||
{
|
||||
address = addr;
|
||||
gpg = {
|
||||
key = "F2132F0C63730C6BC42BCC2A41A6D13FECA21280";
|
||||
signByDefault = true;
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "maildir";
|
||||
};
|
||||
passwordCommand = "${lib.getBin pkgs.gopass}/bin/gopass --nosync show -o eMail/${domain}/${addr}";
|
||||
msmtp.enable = true;
|
||||
notmuch.enable = true;
|
||||
realName = "Alexander Kobjolke";
|
||||
userName = addr;
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.mbsync.enable = true;
|
||||
programs.msmtp.enable = true;
|
||||
|
|
@ -14,26 +36,15 @@
|
|||
};
|
||||
|
||||
accounts.email = {
|
||||
accounts.failco = {
|
||||
address = "me@failco.de";
|
||||
gpg = {
|
||||
key = "F2132F0C63730C6BC42BCC2A41A6D13FECA21280";
|
||||
signByDefault = true;
|
||||
};
|
||||
imap.host = "thrall.failco.de";
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "maildir";
|
||||
};
|
||||
msmtp.enable = true;
|
||||
notmuch.enable = true;
|
||||
accounts.failco = mkAccount "me@failco.de" // {
|
||||
primary = true;
|
||||
realName = "Alexander Kobjolke";
|
||||
passwordCommand = "gopass --nosync show -o eMail/failco.de/me@failco.de";
|
||||
smtp = {
|
||||
host = "thrall.failco.de";
|
||||
};
|
||||
userName = "me@failco.de";
|
||||
imap.host = "thrall.failco.de";
|
||||
smtp.host = "thrall.failco.de";
|
||||
};
|
||||
|
||||
accounts.jakalx = mkAccount "alex@jakalx.net" // {
|
||||
imap.host = "thrall.failco.de";
|
||||
smtp.host = "thrall.failco.de";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue