From a0b52d51e5be5e69bad9cd288dd9c56ae8a56030 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 27 Aug 2024 09:59:55 +0200 Subject: [PATCH] nachtigall: make postgres wait for zfs mount Co-authored-by: b12f Co-authored-by: Hendrik Sokolowski --- hosts/nachtigall/configuration.nix | 5 +++++ modules/postgresql/default.nix | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/nachtigall/configuration.nix b/hosts/nachtigall/configuration.nix index 324755e9..54cbdfd2 100644 --- a/hosts/nachtigall/configuration.nix +++ b/hosts/nachtigall/configuration.nix @@ -52,6 +52,11 @@ nixpkgs.config.permittedInsecurePackages = [ "keycloak-23.0.6" ]; + 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 diff --git a/modules/postgresql/default.nix b/modules/postgresql/default.nix index 580701d2..fa0550d7 100644 --- a/modules/postgresql/default.nix +++ b/modules/postgresql/default.nix @@ -25,9 +25,4 @@ full_page_writes = false; }; }; - - systemd.services.postgresql = { - after = [ "var-lib-postgresql.mount" ]; - requisite = [ "var-lib-postgresql.mount" ]; - }; }