From 50d66bcba638b527a02a4aee21fb91e6f5f1eb67 Mon Sep 17 00:00:00 2001 From: Tom Siewert Date: Sun, 4 Jun 2023 02:32:35 +0200 Subject: [PATCH] nixos/gitlab: Fix config reference for registry (#235639) Support for gitlab-container-registry has been added in 014816cbe469. However, when enabling the registry it will throw an error as it can't find a `package` attribute. This commit fixes the registry configuration by adding the missing `registry` part. --- nixos/modules/services/misc/gitlab.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index bf0a12007447..9c18a2eed1c6 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -1231,7 +1231,7 @@ in { services.dockerRegistry = optionalAttrs cfg.registry.enable { enable = true; enableDelete = true; # This must be true, otherwise GitLab won't manage it correctly - package = cfg.package; + package = cfg.registry.package; extraConfig = { auth.token = { realm = "http${optionalString (cfg.https == true) "s"}://${cfg.host}/jwt/auth";