buildkite: address review suggestions
commit9f5593559bf3f3f736b81ce5ccc388b4893b6241
authorKosyrev Serge <serge.kosyrev@iohk.io>
dateSat 9 Dec 2017, 00:41 (9 years ago)
parentbbb6072
nixos/modules/services/continuous-integration/buildkite-agent.nix+2−3
@@ -48,9 +48,10 @@ in
4848 '';
4949 };
5050
51− hooks-path = mkOption {
51+ hooksPath = mkOption {
5252 type = types.str;
5353 default = "${pkgs.buildkite-agent}/share/hooks";
54+ defaultText = "${pkgs.buildkite-agent}/share/hooks";
5455 description = ''
5556 Path to the directory storing the hooks.
5657 '';
@@ -126,8 +127,6 @@ in
126127 hooks-path="${cfg.hooks-path}"
127128 bootstrap-script="${pkgs.buildkite-agent}/share/bootstrap.sh"
128129 EOF
129−
130− chmod +x ${cfg.hooks-path}/* 2>/dev/null || true # Guard against read-only paths.
131130 '';
132131
133132 serviceConfig =