modules(drone-exec-runner): fix syntax mistakes
This commit is contained in:
parent
91b79c221b
commit
a0be07dbf3
|
@ -6,43 +6,43 @@ let
|
|||
runnerOpts = {
|
||||
options = {
|
||||
enable = mkEnableOption "Enable an Drone CI/CD Exec Runner";
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = pkgs.drone-runner-exec;
|
||||
defaultText = "pkgs.drone-runner-exec";
|
||||
};
|
||||
env = mkOption {
|
||||
type = listOf str;
|
||||
description = "Environment strings (e.g. DRONE_RUNNER_CAPACITY, CLIENT_DRONE_RPC_HOST, etc.)";
|
||||
example = [
|
||||
"DRONE_RUNNER_CAPACITY=10"
|
||||
"CLIENT_DRONE_RPC_HOST=127.0.0.1:3030"
|
||||
];
|
||||
};
|
||||
envFile = mkOption {
|
||||
type = str;
|
||||
description = "Path to the environment file (may contains secrets, notably the shared RPC secret)";
|
||||
};
|
||||
user = mkOption {
|
||||
type = str;
|
||||
default = "drone-runner-exec";
|
||||
};
|
||||
group = mkOption {
|
||||
type = str;
|
||||
default = "drone-runner-exec";
|
||||
};
|
||||
allowedPackages = mkOption {
|
||||
type = listOf package;
|
||||
default = with pkgs; [
|
||||
git
|
||||
gnutar
|
||||
bash
|
||||
nix
|
||||
gzip
|
||||
];
|
||||
};
|
||||
package = mkOption {
|
||||
type = package;
|
||||
default = pkgs.drone-runner-exec;
|
||||
defaultText = "pkgs.drone-runner-exec";
|
||||
};
|
||||
env = mkOption {
|
||||
type = listOf str;
|
||||
description = "Environment strings (e.g. DRONE_RUNNER_CAPACITY, CLIENT_DRONE_RPC_HOST, etc.)";
|
||||
example = [
|
||||
"DRONE_RUNNER_CAPACITY=10"
|
||||
"CLIENT_DRONE_RPC_HOST=127.0.0.1:3030"
|
||||
];
|
||||
};
|
||||
envFile = mkOption {
|
||||
type = str;
|
||||
description = "Path to the environment file (may contains secrets, notably the shared RPC secret)";
|
||||
};
|
||||
user = mkOption {
|
||||
type = str;
|
||||
default = "drone-runner-exec";
|
||||
};
|
||||
group = mkOption {
|
||||
type = str;
|
||||
default = "drone-runner-exec";
|
||||
};
|
||||
allowedPackages = mkOption {
|
||||
type = listOf package;
|
||||
default = with pkgs; [
|
||||
git
|
||||
gnutar
|
||||
bash
|
||||
nix
|
||||
gzip
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options.services.drone-exec-runner = mkOption {
|
||||
|
@ -87,7 +87,7 @@ in
|
|||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
};
|
||||
}) runners;
|
||||
})) runners;
|
||||
|
||||
users.users = mapAttrs' (_: cfg: nameValuePair cfg.user ({
|
||||
isSystemUser = true;
|
||||
|
|
Loading…
Reference in a new issue