summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorJeff Slight <jslight90@gmail.com>2020-09-28 17:41:25 -0700
committerMilan Pässler <milan@petabyte.dev>2020-11-20 19:26:30 +0100
commitf98a6322e6c91aabb56f909d961b0977b221c290 (patch)
treeb8cb6cfbb9275d39df941d990cc2c81ae4106dd0 /nixos/modules
parentc16a97738623b85eaa685eb1e1b5f16182641215 (diff)
nixos/gitlab: add changes for gitlab 13.4.x
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/misc/gitlab.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix
index 122bc3000b41..56fd89c61232 100644
--- a/nixos/modules/services/misc/gitlab.nix
+++ b/nixos/modules/services/misc/gitlab.nix
@@ -43,9 +43,13 @@ let
[gitlab-shell]
dir = "${cfg.packages.gitlab-shell}"
+
+ [gitlab]
secret_file = "${cfg.statePath}/gitlab_shell_secret"
- gitlab_url = "http+unix://${pathUrlQuote gitlabSocket}"
- http_settings = { self_signed_cert = false }
+ url = "http+unix://${pathUrlQuote gitlabSocket}"
+
+ [gitlab.http-settings]
+ self_signed_cert = false
${concatStringsSep "\n" (attrValues (mapAttrs (k: v: ''
[[storage]]
@@ -119,6 +123,7 @@ let
receive_pack = true;
};
workhorse.secret_file = "${cfg.statePath}/.gitlab_workhorse_secret";
+ gitlab_kas.secret_file = "${cfg.statePath}/.gitlab_kas_secret";
git.bin_path = "git";
monitoring = {
ip_whitelist = [ "127.0.0.0/8" "::1/128" ];
@@ -668,6 +673,7 @@ in {
rm "${config.services.postgresql.dataDir}/.reassigning_${cfg.databaseName}"
fi
$PSQL '${cfg.databaseName}' -tAc "CREATE EXTENSION IF NOT EXISTS pg_trgm"
+ $PSQL '${cfg.databaseName}' -tAc "CREATE EXTENSION IF NOT EXISTS btree_gist;"
'';
serviceConfig = {