buildkite: address review suggestions

This commit is contained in:
Kosyrev Serge 2017-12-09 00:41:24 +03:00 committed by Domen Kožar
parent bbb6072f10
commit 9f5593559b

View File

@ -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 =