3
0
Fork 0
forked from mirrors/nixpkgs

nixos/gitlab: Support extra config for shell

This commit is contained in:
Janne Heß 2020-07-18 16:46:33 +02:00
parent d7e20ee25e
commit f459122ea3
No known key found for this signature in database
GPG key ID: 69165158F05265DF

View file

@ -54,7 +54,7 @@ let
'') gitlabConfig.production.repositories.storages))}
'';
gitlabShellConfig = {
gitlabShellConfig = flip recursiveUpdate cfg.extraShellConfig {
user = cfg.user;
gitlab_url = "http+unix://${pathUrlQuote gitlabSocket}";
http_settings.self_signed_cert = false;
@ -511,6 +511,12 @@ in {
'';
};
extraShellConfig = mkOption {
type = types.attrs;
default = {};
description = "Extra configuration to merge into shell-config.yml";
};
extraConfig = mkOption {
type = types.attrs;
default = {};