From 0c4f8e78b522711ca72724248393d7f5d57f6b57 Mon Sep 17 00:00:00 2001 From: Tobias Stenzel Date: Fri, 29 Apr 2022 23:57:57 +0200 Subject: [PATCH] nixos/gitlab: fix gitlab-registry-cert path condition `ConditionPathExists` belongs in the [Unit] section, not [Service]. The unit now properly checks if the cert file already exists before activating so certs will not be overwritten anymore. --- 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 0811b34156e4..c436d0993a69 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -1043,7 +1043,7 @@ in { chown ${cfg.user}:${cfg.group} ${cfg.registry.certFile} ''; - serviceConfig = { + unitConfig = { ConditionPathExists = "!${cfg.registry.certFile}"; }; };