Skip to content

Commit

Permalink
nixos/buildkite-agents: fix hooksDir assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed Feb 19, 2020
1 parent 653856b commit 1872e05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 1872e05

Please sign in to comment.