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.
This commit is contained in:
Tobias Stenzel 2022-04-29 23:57:57 +02:00
parent 22fbd632e6
commit 0c4f8e78b5

View file

@ -1043,7 +1043,7 @@ in {
chown ${cfg.user}:${cfg.group} ${cfg.registry.certFile}
'';
serviceConfig = {
unitConfig = {
ConditionPathExists = "!${cfg.registry.certFile}";
};
};