fork/home-manager
git clone https://git.julia.blue/fork/home-manager
cf662b6c
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5{ 6config = { 7launchd . agents . "test-service" = { 8enable = true ; 9config = { 10ProgramArguments = [ "/some/command" "--with-arguments" "foo" ]; 11KeepAlive = { 12Crashed = true ; 13SuccessfulExit = false ; 14}; 15ProcessType = "Background" ; 16UnrecognizedByHomeManager = "should make it to the resulting plist" ; 17}; 18}; 19 20nmt . script = '' 21serviceFile =LaunchAgents/org.nix-community.home.test-service.plist 22assertFileExists $ serviceFile 23assertFileContent $ serviceFile ${ ./expected-agent.plist } 24'' ; 25}; 26}