nixos/gitlab: Fix config reference for registry (#235639)

Support for gitlab-container-registry has been added in 014816cbe4.
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.
This commit is contained in:
Tom Siewert 2023-06-04 02:32:35 +02:00 committed by GitHub
parent dd4982554e
commit 50d66bcba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";