From 94c7b6d7db5256a0128d27b514e64db90ec07336 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 29 Oct 2023 20:53:16 +0100 Subject: [PATCH] fix: postgresql service should always wait for ZFS mount --- hosts/nachtigall/apps/postgresql.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/nachtigall/apps/postgresql.nix b/hosts/nachtigall/apps/postgresql.nix index 0fa8f84..82d66e7 100644 --- a/hosts/nachtigall/apps/postgresql.nix +++ b/hosts/nachtigall/apps/postgresql.nix @@ -2,4 +2,12 @@ { services.postgresql.enable = true; + systemd.services.postgresql = { + after = [ + "var-lib-postgresql.mount" + ]; + requisite = [ + "var-lib-postgresql.mount" + ]; + }; }