mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-26 23:27:29 +03:00
nixos/gitlab: add extraEnv option
This allows users to define custom environment variables for gitlab, without having to modify the service file directly
This commit is contained in:
parent
960d10ab7b
commit
7135ac0e00
@ -156,7 +156,7 @@ let
|
|||||||
prometheus_multiproc_dir = "/run/gitlab";
|
prometheus_multiproc_dir = "/run/gitlab";
|
||||||
RAILS_ENV = "production";
|
RAILS_ENV = "production";
|
||||||
MALLOC_ARENA_MAX = "2";
|
MALLOC_ARENA_MAX = "2";
|
||||||
};
|
} // cfg.extraEnv;
|
||||||
|
|
||||||
gitlab-rake = pkgs.stdenv.mkDerivation {
|
gitlab-rake = pkgs.stdenv.mkDerivation {
|
||||||
name = "gitlab-rake";
|
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 {
|
backup.startAt = mkOption {
|
||||||
type = with types; either str (listOf str);
|
type = with types; either str (listOf str);
|
||||||
default = [];
|
default = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user