diff options
author | Bruno BELANYI <bruno@belanyi.fr> | 2023-03-18 17:05:05 +0000 |
---|---|---|
committer | Bruno BELANYI <bruno@belanyi.fr> | 2023-03-23 14:16:45 +0000 |
commit | eb3bea6359b56048835f2a31bb1505eb6f793908 (patch) | |
tree | d9085ea72717d130a6bc89a94991f0c88354a9c0 /nixos/modules/services/continuous-integration | |
parent | c3afdb82db6c9c9157329e3b74cc514fecedf441 (diff) | |
download | nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.tar nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.tar.gz nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.tar.bz2 nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.tar.lz nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.tar.xz nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.tar.zst nixpkgs-eb3bea6359b56048835f2a31bb1505eb6f793908.zip |
nixos/woodpecker-agents: simplify 'extraGroups' handling
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r-- | nixos/modules/services/continuous-integration/woodpecker/agents.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/continuous-integration/woodpecker/agents.nix b/nixos/modules/services/continuous-integration/woodpecker/agents.nix index 6da3ad7b73b..10ad94cee7b 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/agents.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/agents.nix @@ -25,8 +25,8 @@ let }; extraGroups = lib.mkOption { - default = null; - type = lib.types.nullOr (lib.types.listOf lib.types.str); + type = lib.types.listOf lib.types.str; + default = [ ]; example = [ "podman" ]; description = lib.mdDoc '' Additional groups for the systemd service. @@ -58,7 +58,7 @@ let wants = [ "network-online.target" ]; serviceConfig = { DynamicUser = true; - SupplementaryGroups = lib.optionals (agentCfg.extraGroups != null) agentCfg.extraGroups; + SupplementaryGroups = agentCfg.extraGroups; EnvironmentFile = agentCfg.environmentFile; ExecStart = lib.getExe agentCfg.package; Restart = "on-failure"; |