1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-06 08:47:00 +00:00

hercules-ci-agent: check for nix.enable

This commit is contained in:
Emily 2025-02-10 19:31:28 +00:00
parent 147ed950e3
commit 57c93ffe6c

View file

@ -22,6 +22,14 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
# TODO: Upstream this to NixOS.
assertions = [
{
assertion = config.nix.enable;
message = ''`services.hercules-ci-agent.enable` requires `nix.enable`'';
}
];
launchd.daemons.hercules-ci-agent = { launchd.daemons.hercules-ci-agent = {
script = "exec ${cfg.package}/bin/hercules-ci-agent --config ${cfg.tomlFile}"; script = "exec ${cfg.package}/bin/hercules-ci-agent --config ${cfg.tomlFile}";