va a ciapa i ratt
This commit is contained in:
parent
fac91af11a
commit
8346c9f02c
43 changed files with 909 additions and 446 deletions
|
@ -3,52 +3,67 @@
|
|||
secrets,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [mu];
|
||||
programs.mbsync.enable = true;
|
||||
programs.msmtp.enable = true;
|
||||
programs.notmuch = {
|
||||
enable = true;
|
||||
hooks = {
|
||||
preNew = "mbsync --all";
|
||||
};
|
||||
};
|
||||
services = {
|
||||
mbsync = {
|
||||
enable = false;
|
||||
# FIXME this requires `pass` every 5 minutes that run `pinentry`
|
||||
frequency = "*:0/15";
|
||||
preExec = "${pkgs.isync}/bin/mbsync -Ha";
|
||||
# First time run: mu init --maildir ~/.mail --my-address andrea.ciceri@autistici.org
|
||||
# TODO Nixify this
|
||||
postExec = "${pkgs.mu}/bin/mu index";
|
||||
};
|
||||
};
|
||||
# home.packages = with pkgs; [mu];
|
||||
# programs.mbsync.enable = true;
|
||||
# programs.msmtp.enable = true;
|
||||
# programs.notmuch = {
|
||||
# enable = true;
|
||||
# hooks = {
|
||||
# preNew = "mbsync --all";
|
||||
# };
|
||||
# };
|
||||
# services = {
|
||||
# mbsync = {
|
||||
# enable = false;
|
||||
# # FIXME this requires `pass` every 5 minutes that run `pinentry`
|
||||
# frequency = "*:0/15";
|
||||
# preExec = "${pkgs.isync}/bin/mbsync -Ha";
|
||||
# # First time run: mu init --maildir ~/.mail --my-address andrea.ciceri@autistici.org
|
||||
# # TODO Nixify this
|
||||
# postExec = "${pkgs.mu}/bin/mu index";
|
||||
# };
|
||||
# };
|
||||
accounts.email = {
|
||||
maildirBasePath = ".mail";
|
||||
# maildirBasePath = ".mail";
|
||||
accounts.autistici = {
|
||||
address = "andrea.ciceri@autistici.org";
|
||||
gpg = {
|
||||
key = "7A66EEA1E6C598D07D361287A1FC89532D1C565";
|
||||
signByDefault = true;
|
||||
};
|
||||
imap.host = "mail.autistici.org";
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "maildir";
|
||||
imap = {
|
||||
host = "mail.autistici.org";
|
||||
port = 993;
|
||||
};
|
||||
msmtp.enable = true;
|
||||
notmuch.enable = true;
|
||||
# mbsync = {
|
||||
# enable = true;
|
||||
# create = "maildir";
|
||||
# };
|
||||
# msmtp.enable = true;
|
||||
# notmuch.enable = true;
|
||||
primary = true;
|
||||
realName = "Andrea Ciceri";
|
||||
signature = {
|
||||
# text = '''';
|
||||
text = ''
|
||||
Andrea Ciceri
|
||||
'';
|
||||
showSignature = "append";
|
||||
};
|
||||
passwordCommand = "${pkgs.pass}/bin/pass show autistici/password";
|
||||
passwordCommand = "${pkgs.coreutils}/bin/cat ${secrets.autistici-password.path}";
|
||||
smtp = {
|
||||
host = "smtp.autistici.org";
|
||||
};
|
||||
userName = "andrea.ciceri@autistici.org";
|
||||
};
|
||||
accounts.mlabs = {
|
||||
address = "andreaciceri@mlabs.city";
|
||||
imap = {
|
||||
host = "imap.gmail.com";
|
||||
port = 993;
|
||||
};
|
||||
realName = "Andrea Ciceri";
|
||||
smtp.host = "smtp.gmail.com";
|
||||
userName = "andreaciceri@mlabs.city";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue