feat(home): Add email module and configure first account
This commit is contained in:
parent
5ce6f7b688
commit
1ec7d39b30
2 changed files with 40 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
|||
./services/network-manager
|
||||
./services/syncthing
|
||||
./services/git-sync
|
||||
./modules/email.nix
|
||||
];
|
||||
|
||||
home = {
|
||||
|
|
|
|||
39
home/alex/modules/email.nix
Normal file
39
home/alex/modules/email.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
programs.mbsync.enable = true;
|
||||
programs.msmtp.enable = true;
|
||||
programs.notmuch = {
|
||||
enable = true;
|
||||
hooks.preNew = "mbsync --all";
|
||||
};
|
||||
|
||||
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;
|
||||
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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue