fork/home-manager
git clone https://git.julia.blue/fork/home-manager
b70db52f
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6imports = [ ../../accounts/email-test-accounts.nix ]; 7 8accounts . . accounts = { 9"hm@example.com" = { 10notmuch . enable = true ; 11imap . port = 993 ; 12 13imapnotify = { 14enable = true ; 15boxes = [ "Inbox" ]; 16onNotify = '' 17${ pkgs . notmuch } /bin/notmuch new 18'' ; 19}; 20}; 21}; 22 23services . imapnotify = { 24enable = true ; 25package = ( config . lib . test . mkStubPackage { 26name = "goimapnotify" ; 27outPath = "@goimapnotify@" ; 28}); 29}; 30 31test . stubs . notmuch = { }; 32 33nmt . script = '' 34serviceFile ="home-files/.config/systemd/user/imapnotify-hm-example.com.service" 35serviceFileNormalized =" $( normalizeStorePaths " $ serviceFile " ) " 36assertFileExists $ serviceFile 37assertFileContent $ serviceFileNormalized ${ ./imapnotify.service } 38'' ; 39}