nextcloud: ensure service starts after nixops keys are loaded
This commit is contained in:
parent
2a3d08c0f9
commit
81caa582e4
|
@ -30,6 +30,16 @@
|
||||||
package = pkgs.nextcloud24;
|
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 = {
|
services.postgresql = {
|
||||||
enable = true; # Ensure postgresql is enabled
|
enable = true; # Ensure postgresql is enabled
|
||||||
ensureDatabases = ["nextcloud"]; # Ensure the database persists
|
ensureDatabases = ["nextcloud"]; # Ensure the database persists
|
||||||
|
|
Loading…
Reference in a new issue