nextcloud: ensure service starts after nixops keys are loaded

This commit is contained in:
Serĉanto de Scio 2022-08-17 15:39:27 +10:00
parent 2a3d08c0f9
commit 81caa582e4
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -30,6 +30,16 @@
package = pkgs.nextcloud24;
};
systemd = {
services = {
nextcloud = {
# Ensure nextcloud starts after nixops keys are loaded
after = ["nextcloud-dbpass-key.service"];
wants = ["nextcloud-dbpass-key.service"];
};
};
};
services.postgresql = {
enable = true; # Ensure postgresql is enabled
ensureDatabases = ["nextcloud"]; # Ensure the database persists