From 77b4a81e2c4a17bf1e2170d792b0dceb65a9a864 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 15 Jan 2024 13:23:43 +0300 Subject: [PATCH] Add requires to systemd services --- hosts/cube/grafana.nix | 2 ++ hosts/cube/nextcloud.nix | 2 ++ 2 files changed, 4 insertions(+) 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;