feat(home): Add email module and configure first account
This commit is contained in:
parent
c87ead8de8
commit
08e0b2b1bf
2 changed files with 40 additions and 0 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
./services/network-manager
|
./services/network-manager
|
||||||
./services/syncthing
|
./services/syncthing
|
||||||
./services/git-sync
|
./services/git-sync
|
||||||
|
./modules/email.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
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