diff --git a/hosts/cube/grafana.nix b/hosts/cube/grafana.nix index 976604c..566279f 100644 --- a/hosts/cube/grafana.nix +++ b/hosts/cube/grafana.nix @@ -15,6 +15,8 @@ in serverSystemConfiguration { group = "grafana"; }; + systemd.services.grafana.requires = [ "postgresql.service" ]; + services.grafana = enabled { domain = fqdn; port = 8999; diff --git a/hosts/cube/nextcloud.nix b/hosts/cube/nextcloud.nix index db1340a..286dc59 100644 --- a/hosts/cube/nextcloud.nix +++ b/hosts/cube/nextcloud.nix @@ -15,6 +15,8 @@ in serverSystemConfiguration { group = "nextcloud"; }; + systemd.services.nextcloud-setup.requires = [ "postgresql.service" ]; + services.nextcloud = enabled { package = pkgs.nextcloud28;