summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration
diff options
context:
space:
mode:
authorBruno BELANYI <bruno@belanyi.fr>2023-03-18 17:05:05 +0000
committerBruno BELANYI <bruno@belanyi.fr>2023-03-23 14:16:45 +0000
commiteb3bea6359b56048835f2a31bb1505eb6f793908 (patch)
treed9085ea72717d130a6bc89a94991f0c88354a9c0 /nixos/modules/services/continuous-integration
parentc3afdb82db6c9c9157329e3b74cc514fecedf441 (diff)
downloadnixpkgs-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.nix6
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";