diesdas
This commit is contained in:
parent
3362d139c4
commit
e374b0b693
7 changed files with 305 additions and 77 deletions
|
|
@ -1,35 +1,70 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
accounts.email = {
|
||||
maildirBasePath = "${config.xdg.dataHome}/mail/imap";
|
||||
accounts.ktiu = {
|
||||
primary = true;
|
||||
address = "till@ktiu.net";
|
||||
realName = "Till Straube";
|
||||
imap.host = "shorbut.ktiu.net";
|
||||
smtp.host = "shorbut.ktiu.net";
|
||||
userName = "till";
|
||||
neomutt.enable = true;
|
||||
mbsync.enable = true;
|
||||
passwordCommand = "secret-tool lookup server shorbut.ktiu.net account till";
|
||||
};
|
||||
};
|
||||
programs.msmtp.enable = true;
|
||||
programs.mbsync.enable = true;
|
||||
programs.neomutt = {
|
||||
enable = true;
|
||||
vimKeys = true;
|
||||
binds = [
|
||||
{ key = "V"; action = "noop"; map = ["index" "pager"]; }
|
||||
];
|
||||
macros = [
|
||||
{ key = "c"; action = "<enter-command>set signature=$my_signature<enter><mail>"; map = ["index" "pager"]; }
|
||||
];
|
||||
extraConfig = builtins.readFile ./neomutt.conf;
|
||||
# xdg.configFile."nvim/autocommmands.vim".source = ./autocommands.vim;
|
||||
# xdg.configFile."nvim/ftplugin/markdown.vim".source = ./ftplugin/markdown.vim;
|
||||
# xdg.configFile."nvim/ftplugin/r.vim".source = ./ftplugin/r.vim;
|
||||
# xdg.configFile."nvim/ftplugin/rmd.vim".source = ./ftplugin/rmd.vim;
|
||||
# xdg.configFile."nvim/syntax/rmd.vim".source = ./syntax/rmd.vim;
|
||||
sort = "reverse-threads";
|
||||
changeFolderWhenSourcingAccount = false;
|
||||
extraConfig = builtins.readFile ./config.neomttrc;
|
||||
};
|
||||
xdg.configFile."neomutt/bindings.neomuttrc".source = ./bindings.neomuttrc;
|
||||
accounts.email = {
|
||||
maildirBasePath = "${config.xdg.dataHome}/mail/imap";
|
||||
accounts = {
|
||||
ktiu = {
|
||||
primary = true;
|
||||
address = "till@ktiu.net";
|
||||
realName = "Till Straube";
|
||||
imap.host = "shorbut.ktiu.net";
|
||||
smtp.host = "shorbut.ktiu.net";
|
||||
userName = "till";
|
||||
signature.text = ''
|
||||
Till Straube
|
||||
'';
|
||||
signature.showSignature = "append";
|
||||
neomutt.enable = true;
|
||||
neomutt.extraConfig = ''
|
||||
unalternates *
|
||||
alternates @ktiu.net$
|
||||
set reverse_name
|
||||
# set my_signature = {signature}
|
||||
color status yellow default
|
||||
'';
|
||||
mbsync.enable = true;
|
||||
msmtp.enable = true;
|
||||
passwordCommand = "secret-tool lookup server shorbut.ktiu.net account till";
|
||||
};
|
||||
gu = {
|
||||
address = "straube@geo.uni-frankfurt.de";
|
||||
realName = "Till Straube";
|
||||
imap.host = "imap.server.uni-frankfurt.de";
|
||||
smtp.host = "smtpauth.rz.uni-frankfurt.de";
|
||||
userName = "tstraube";
|
||||
signature = {
|
||||
text = ''
|
||||
Till Straube
|
||||
'';
|
||||
showSignature = "append";
|
||||
};
|
||||
neomutt.enable = true;
|
||||
neomutt.extraConfig = ''
|
||||
unalternates *
|
||||
alternates ^straube@em.uni-frankfurt.de$ \
|
||||
^tstraube@em.uni-frankfurt.de$ \
|
||||
^tstraube@rz.uni-frankfurt.de$ \
|
||||
^tstraube@uni-frankfurt.de$
|
||||
unset reverse_name
|
||||
# set my_signature = {signature}
|
||||
color status blue default
|
||||
'';
|
||||
mbsync.enable = true;
|
||||
msmtp.enable = true;
|
||||
passwordCommand = "secret-tool lookup server imap.server.uni-frankfurt.de account tstraube";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue