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 = let 34serviceFileName = "org.nix-community.home.imapnotify-hm-example.com.plist" ; 35in '' 36serviceFile="LaunchAgents/ ${ serviceFileName } " 37serviceFileNormalized="$(normalizeStorePaths "$serviceFile")" 38assertFileExists $serviceFile 39assertFileContent $serviceFileNormalized ${ ./launchd.plist } 40'' ; 41}