From d34c19fd09a8955b7dee674ec29a331a2e58285a Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 16 Aug 2022 13:48:33 +1000 Subject: [PATCH] gitea: ensure service starts after nixops keys are loaded --- profiles/gitea.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 = ''