From 12bb2091568916af689296411f3abc32f083d281 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Wed, 5 Jun 2024 01:40:02 +0100 Subject: [PATCH] fix(amy): use correct path for postgres --- roles/postgres.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/postgres.nix b/roles/postgres.nix index c5bde81..6811df5 100644 --- a/roles/postgres.nix +++ b/roles/postgres.nix @@ -23,7 +23,7 @@ }; ensureDatabases = [ "shorks-gay" ]; enableTCPIP = true; - dataDir = "/data/postgresql/${config.services.postgresql.package.psqlSchema}"; + dataDir = pkgs.lib.mkIf (config.networking.hostName == "lea") "/data/postgresql/${config.services.postgresql.package.psqlSchema}"; authentication = pkgs.lib.mkOverride 10 '' #type database DBuser auth-method local all all peer