Something went wrong. Try again.
Support for Modular Services in nix-darwin
Something went wrong. Try again.
1234567891011121314151617181920212223242526{ config, pkgs, ...}:
{ system.primaryUser = "test-modular-user";
system.services.foo = { process.argv = [ "${pkgs.hello}/bin/hello" "--greeting=hi" ]; };
test = '' echo "checking modular daemon plist exists" >&2 plist=${config.system.build.launchd}/Library/LaunchDaemons/org.nixos.foo.plist test -f "$plist" || (echo "missing $plist" >&2; exit 1)
. ${./lib/assertions.sh} assertFileContent "$plist" ${./fixtures/basic-foo.plist} '';}