nixos/buildkite-agents: fix hooksDir assertion

This commit is contained in:
Yorick van Pelt 2020-02-19 12:22:35 +01:00
parent d4c0e72071
commit 1b351f81f4
No known key found for this signature in database
GPG Key ID: A36E70F9DC014A15

View File

@ -258,7 +258,7 @@ in
});
config.assertions = mapAgents (name: cfg: [
{ assertion = cfg.hooksPath == hooksDir || all (v: v == null) (attrValues cfg.hooks);
{ assertion = cfg.hooksPath == (hooksDir cfg) || all (v: v == null) (attrValues cfg.hooks);
message = ''
Options `services.buildkite-agents.${name}.hooksPath' and
`services.buildkite-agents.${name}.hooks.<name>' are mutually exclusive.