From aa2cb08ff28e9ba17b6c632dd56b32944b6ff2a6 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 26 Dec 2022 19:31:04 +0100 Subject: Postgres data dir as subdir Signed-off-by: TheArcaneBrony --- build.sh | 2 +- host/Rory-postgres/configuration.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 4463579..5efc800 100755 --- a/build.sh +++ b/build.sh @@ -17,6 +17,6 @@ else git add -f hardware-configuration.nix nixos-install --root "${1}" --flake ".#${2}" git rm --cached hardware-configuration.nix - cp . "${1}/Rory-Open-Architecture" -rv + cp . "${1}/Rory-Open-Architecture" -r exit fi diff --git a/host/Rory-postgres/configuration.nix b/host/Rory-postgres/configuration.nix index 7123a57..6081652 100644 --- a/host/Rory-postgres/configuration.nix +++ b/host/Rory-postgres/configuration.nix @@ -35,7 +35,7 @@ # CREATE DATABASE nixcloud; # GRANT ALL PRIVILEGES ON DATABASE nixcloud TO nixcloud; # ''; - dataDir = "/data"; + dataDir = "/data/pg"; }; system.stateVersion = "22.11"; # DO NOT EDIT! -- cgit 1.4.1