diff options
author | Janik H. <janik@aq0.de> | 2023-10-22 19:10:55 +0200 |
---|---|---|
committer | Janik H. <janik@aq0.de> | 2023-10-31 15:46:53 +0100 |
commit | 8e5729517e73b496276b84a665be9f9f709f789b (patch) | |
tree | 6f7534641e4553d0d4b3d2e70aff71e3f0fee89f /nixos/modules/services/continuous-integration | |
parent | 13f325005cc9037f558a24772cb4b8e9572163d4 (diff) |
nixos/woodpecker-server: change type of environmentFile to list of paths
Diffstat (limited to 'nixos/modules/services/continuous-integration')
-rw-r--r-- | nixos/modules/services/continuous-integration/woodpecker/server.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/continuous-integration/woodpecker/server.nix b/nixos/modules/services/continuous-integration/woodpecker/server.nix index cae5ed7cf1161..dc8f1567f1e3d 100644 --- a/nixos/modules/services/continuous-integration/woodpecker/server.nix +++ b/nixos/modules/services/continuous-integration/woodpecker/server.nix @@ -31,8 +31,8 @@ in description = lib.mdDoc "woodpecker-server config environment variables, for other options read the [documentation](https://woodpecker-ci.org/docs/administration/server-config)"; }; environmentFile = lib.mkOption { - type = lib.types.nullOr lib.types.path; - default = null; + type = with lib.types; coercedTo path (f: [ f ]) (listOf path); + default = [ ]; example = "/root/woodpecker-server.env"; description = lib.mdDoc '' File to load environment variables @@ -61,7 +61,7 @@ in StateDirectoryMode = "0700"; UMask = "0007"; ConfigurationDirectory = "woodpecker-server"; - EnvironmentFile = lib.optional (cfg.environmentFile != null) cfg.environmentFile; + EnvironmentFile = cfg.environmentFile; ExecStart = "${cfg.package}/bin/woodpecker-server"; Restart = "on-failure"; RestartSec = 15; |