From 50fc446be16901047ac0efd55fdc77a287845ed5 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Fri, 14 Mar 2025 16:44:34 +0100 Subject: [PATCH] nixos/gitlab: convert gitlab-registry-cert.service to oneshot docker-registry.service has a `After` dependency on gitlab-registry-cert. On the first start, docker-registry.service fails to start as it already runs when gitlab-registry-cert.service starts up, and not when it finished. --- nixos/modules/services/misc/gitlab.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index f96c6f548b0b..bd714fd247cf 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -1231,6 +1231,7 @@ in { ConditionPathExists = "!${cfg.registry.certFile}"; }; serviceConfig = { + Type = "oneshot"; Slice = "system-gitlab.slice"; }; };