diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2021-06-08 21:29:18 +0200 |
---|---|---|
committer | Maciej Krüger <mkg20001@gmail.com> | 2021-06-08 21:29:18 +0200 |
commit | 7135ac0e005453a8e94854ded879fd1bcc741220 (patch) | |
tree | 96102c6182d0e8098e1fff49002230c31220842d /nixos/modules | |
parent | 960d10ab7b281118ea7eee051adc3b21bba5ff31 (diff) | |
download | nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.tar nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.tar.gz nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.tar.bz2 nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.tar.lz nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.tar.xz nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.tar.zst nixpkgs-7135ac0e005453a8e94854ded879fd1bcc741220.zip |
nixos/gitlab: add extraEnv option
This allows users to define custom environment variables for gitlab, without having to modify the service file directly
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/misc/gitlab.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index 253d87537cf..9f4af76b1cf 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -156,7 +156,7 @@ let prometheus_multiproc_dir = "/run/gitlab"; RAILS_ENV = "production"; MALLOC_ARENA_MAX = "2"; - }; + } // cfg.extraEnv; gitlab-rake = pkgs.stdenv.mkDerivation { name = "gitlab-rake"; @@ -277,6 +277,14 @@ in { ''; }; + extraEnv = mkOption { + type = types.attrsOf types.str; + default = {}; + description = '' + Additional environment variables for the GitLab environment. + ''; + }; + backup.startAt = mkOption { type = with types; either str (listOf str); default = []; |