fork/home-manager
git clone https://git.julia.blue/fork/home-manager
f8b51be7
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 ; 19signature = { 20showSignature = "append" ; 21command = pkgs . writeScript "signature" "echo This is my signature" ; 22}; 23}; 24}; 25 26programs . neomutt = { 27enable = true ; 28vimKeys = false ; 29}; 30 31test . stubs . neomutt = { }; 32 33nmt . script = '' 34assertFileExists home-files/.config/neomutt/neomuttrc 35assertFileExists home-files/.config/neomutt/hm@example.com 36assertFileContent home-files/.config/neomutt/neomuttrc ${ 37./neomutt-expected.conf 38} 39expectedSignature = $( normalizeStorePaths "home-files/.config/neomutt/hm@example.com" ) 40assertFileContent " $ expectedSignature " ${ 41./hm-example.com-signature-command-expected 42} 43'' ; 44}; 45}