35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ 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.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;
|
|
};
|
|
}
|