fork/home-manager
git clone https://git.julia.blue/fork/home-manager
cb09a968
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6imports = [ ../../accounts/email-test-accounts.nix ]; 7 8config = { 9accounts . . accounts = { 10"hm@example.com" = { 11notmuch . enable = true ; 12neomutt = { 13enable = true ; 14extraConfig = '' 15color status cyan default 16'' ; 17mailboxName = "someCustomName" ; 18extraMailboxes = [ 19"Sent" 20{ 21mailbox = "Junk Email" ; 22name = "Spam" ; 23} 24{ mailbox = "Trash" ; } 25]; 26}; 27imap . port = 993 ; 28}; 29}; 30 31programs . neomutt = { 32enable = true ; 33vimKeys = false ; 34}; 35 36test . stubs . neomutt = { }; 37 38nmt . script = '' 39assertFileExists home-files/.config/neomutt/neomuttrc 40assertFileExists home-files/.config/neomutt/hm@example.com 41assertFileContent home-files/.config/neomutt/neomuttrc ${ 42./neomutt-with-named-mailboxes-expected.conf 43} 44assertFileContent home-files/.config/neomutt/hm@example.com ${ 45./hm-example.com-expected 46} 47'' ; 48}; 49}