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 55test . asserts . warnings . expected = [ 56"Specifying 'programs.neomutt.(binds|macros).map' as a string is deprecated, use a list of strings instead. See https://github.com/nix-community/home-manager/pull/1885." 57]; 58 59nmt . script = '' 60assertFileExists home-files/.config/neomutt/neomuttrc 61assertFileExists home-files/.config/neomutt/hm@example.com 62assertFileContent home-files/.config/neomutt/neomuttrc ${ 63./neomutt-with-binds-expected.conf 64} 65assertFileContent home-files/.config/neomutt/hm@example.com ${ 66./hm-example.com-expected 67} 68'' ; 69}; 70}