Tweak mail
This commit is contained in:
parent
262bb6234a
commit
53739eaac5
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
mail = config.m-0.mail;
|
mail = config.m-0.mail;
|
||||||
|
me = config.m-0.private.me;
|
||||||
mkMailbox = {password, user, host, name}:
|
mkMailbox = {password, user, host, name}:
|
||||||
''
|
''
|
||||||
IMAPAccount ${name}
|
IMAPAccount ${name}
|
||||||
|
@ -39,12 +40,16 @@ in {
|
||||||
services.mbsync = {
|
services.mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configFile = builtins.toFile "mbsync-conf" (builtins.concatStringsSep "\n" (builtins.map mkMailbox mail.boxes));
|
configFile = builtins.toFile "mbsync-conf" (builtins.concatStringsSep "\n" (builtins.map mkMailbox mail.boxes));
|
||||||
|
frequency = "*:0/1";
|
||||||
|
verbose = false;
|
||||||
};
|
};
|
||||||
home = {
|
home = {
|
||||||
packages = [ pkgs.neomutt ];
|
packages = [ pkgs.neomutt ];
|
||||||
file.".neomuttrc".text = ''
|
file.".neomuttrc".text = ''
|
||||||
set folder="~/mail/"
|
set folder="~/mail/"
|
||||||
mailboxes `find ~/mail -type d -name INBOX -printf '"%h" '` `find ~/mail -type d -name cur -printf '"%h" '`
|
mailboxes `find ~/mail -type d -name INBOX -printf '"%h" '` `find ~/mail -type d -name cur -printf '"%h" '`
|
||||||
|
set sort=threads
|
||||||
|
set realname="${me.name}"
|
||||||
set spoolfile="~/mail/m-0/INBOX"
|
set spoolfile="~/mail/m-0/INBOX"
|
||||||
set sidebar_folder_indent=yes
|
set sidebar_folder_indent=yes
|
||||||
set sidebar_short_path=yes
|
set sidebar_short_path=yes
|
||||||
|
|
Loading…
Reference in a new issue