From cffd3d002e285b1f92a601fe7efe675b06f0b279 Mon Sep 17 00:00:00 2001 From: b12f Date: Sun, 25 Aug 2024 17:05:06 +0200 Subject: [PATCH] nachtigall: make postgres wait for zfs mount --- hosts/nachtigall/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/nachtigall/configuration.nix b/hosts/nachtigall/configuration.nix index bc7e76d..43a3c6e 100644 --- a/hosts/nachtigall/configuration.nix +++ b/hosts/nachtigall/configuration.nix @@ -64,6 +64,11 @@ repository = "sftp:u377325@u377325.your-storagebox.de:/backups"; }; + systemd.services.postgresql = { + after = [ "var-lib-postgresql.mount" ]; + requisite = [ "var-lib-postgresql.mount" ]; + }; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you