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'' ; 17}; 18imap . port = 993 ; 19}; 20}; 21 22programs . neomutt = { 23enable = true ; 24vimKeys = false ; 25 26binds = [ 27{ 28action = "complete-query" ; 29key = "<Tab>" ; 30map = [ "editor" ]; 31} 32{ 33action = "sidebar-prev" ; 34key = "\\Cp" ; 35map = [ "index" "pager" ]; 36} 37]; 38 39macros = [ 40{ 41action = "<save-message>?<tab>" ; 42key = "s" ; 43map = [ "index" ]; 44} 45{ 46action = "<change-folder>?<change-dir><home>^K=<enter><tab>" ; 47key = "c" ; 48map = [ "index" "pager" ]; 49} 50]; 51}; 52 53test . stubs . neomutt = { }; 54 55nmt . script = '' 56assertFileExists home-files/.config/neomutt/neomuttrc 57assertFileExists home-files/.config/neomutt/hm@example.com 58assertFileContent home-files/.config/neomutt/neomuttrc ${ 59./neomutt-with-binds-expected.conf 60} 61assertFileContent home-files/.config/neomutt/hm@example.com ${ 62./hm-example.com-expected 63} 64'' ; 65}; 66}