From 9f5593559bf3f3f736b81ce5ccc388b4893b6241 Mon Sep 17 00:00:00 2001 From: Kosyrev Serge Date: Sat, 9 Dec 2017 00:41:24 +0300 Subject: [PATCH] buildkite: address review suggestions --- .../services/continuous-integration/buildkite-agent.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/continuous-integration/buildkite-agent.nix b/nixos/modules/services/continuous-integration/buildkite-agent.nix index 41a1cc9d642..62ab1157d09 100644 --- a/nixos/modules/services/continuous-integration/buildkite-agent.nix +++ b/nixos/modules/services/continuous-integration/buildkite-agent.nix @@ -48,9 +48,10 @@ in ''; }; - hooks-path = mkOption { + hooksPath = mkOption { type = types.str; default = "${pkgs.buildkite-agent}/share/hooks"; + defaultText = "${pkgs.buildkite-agent}/share/hooks"; description = '' Path to the directory storing the hooks. ''; @@ -126,8 +127,6 @@ in hooks-path="${cfg.hooks-path}" bootstrap-script="${pkgs.buildkite-agent}/share/bootstrap.sh" EOF - - chmod +x ${cfg.hooks-path}/* 2>/dev/null || true # Guard against read-only paths. ''; serviceConfig =