Skip to content

Commit

Permalink
nixos/buildkite-agents: fix hooksDir assertion
Browse files Browse the repository at this point in the history
(cherry picked from commit 1b351f8)
  • Loading branch information
yorickvP authored and infinisil committed Feb 21, 2020
1 parent 3b9b66d commit 37e1d40
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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.
Expand Down

0 comments on commit 37e1d40

Please sign in to comment.