diff --git a/hosts/nachtigall/configuration.nix b/hosts/nachtigall/configuration.nix index 324755e..54cbdfd 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 580701d..fa0550d 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" ]; - }; }