From eb3bea6359b56048835f2a31bb1505eb6f793908 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 18 Mar 2023 17:05:05 +0000 Subject: nixos/woodpecker-agents: simplify 'extraGroups' handling --- nixos/modules/services/continuous-integration/woodpecker/agents.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nixos/modules/services/continuous-integration') 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"; -- cgit 1.4.1