diff --git a/profiles/gitea.nix b/profiles/gitea.nix index faee3a4..6c33750 100644 --- a/profiles/gitea.nix +++ b/profiles/gitea.nix @@ -41,6 +41,16 @@ }; }; + systemd = { + services = { + gitea = { + # Ensure gitea starts after nixops keys are loaded + after = ["gitea-dbpass-key.service"]; + wants = ["gitea-dbpass-key.service"]; + }; + }; + }; + services.postgresql = { enable = true; # Ensure postgresql is enabled authentication = ''