buildkite: address review suggestions
This commit is contained in:
parent
bbb6072f10
commit
9f5593559b
@ -48,9 +48,10 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
hooks-path = mkOption {
|
hooksPath = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "${pkgs.buildkite-agent}/share/hooks";
|
default = "${pkgs.buildkite-agent}/share/hooks";
|
||||||
|
defaultText = "${pkgs.buildkite-agent}/share/hooks";
|
||||||
description = ''
|
description = ''
|
||||||
Path to the directory storing the hooks.
|
Path to the directory storing the hooks.
|
||||||
'';
|
'';
|
||||||
@ -126,8 +127,6 @@ in
|
|||||||
hooks-path="${cfg.hooks-path}"
|
hooks-path="${cfg.hooks-path}"
|
||||||
bootstrap-script="${pkgs.buildkite-agent}/share/bootstrap.sh"
|
bootstrap-script="${pkgs.buildkite-agent}/share/bootstrap.sh"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x ${cfg.hooks-path}/* 2>/dev/null || true # Guard against read-only paths.
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
serviceConfig =
|
serviceConfig =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user