From 93fc700fa26f6ad780a71fc9e2574d127b150d68 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Mon, 30 Mar 2026 11:28:53 -0400 Subject: [PATCH] removed preStart step --- systems/jeeves/services/postgress.nix | 12 ------------ systems/jeeves/vars.nix | 1 - 2 files changed, 13 deletions(-) diff --git a/systems/jeeves/services/postgress.nix b/systems/jeeves/services/postgress.nix index 525c4ba..65cec48 100644 --- a/systems/jeeves/services/postgress.nix +++ b/systems/jeeves/services/postgress.nix @@ -5,18 +5,6 @@ in { networking.firewall.allowedTCPPorts = [ 5432 ]; - # Symlink pg_wal to a ZFS dataset on the special (metadata) vdev for fast WAL writes - systemd.services.postgresql.preStart = pkgs.lib.mkAfter '' - if [ ! -L "${vars.database}/postgres/pg_wal" ] && [ -d "${vars.database}/postgres/pg_wal" ]; then - echo "Moving pg_wal to ${vars.postgres_wal} and creating symlink..." - cp -a "${vars.database}/postgres/pg_wal/." "${vars.postgres_wal}/" - rm -rf "${vars.database}/postgres/pg_wal" - ln -s "${vars.postgres_wal}" "${vars.database}/postgres/pg_wal" - elif [ ! -e "${vars.database}/postgres/pg_wal" ]; then - ln -s "${vars.postgres_wal}" "${vars.database}/postgres/pg_wal" - fi - ''; - services.postgresql = { enable = true; package = pkgs.postgresql_17_jit; diff --git a/systems/jeeves/vars.nix b/systems/jeeves/vars.nix index ae9a5fc..c64a0c1 100644 --- a/systems/jeeves/vars.nix +++ b/systems/jeeves/vars.nix @@ -6,7 +6,6 @@ in { inherit zfs_media zfs_storage zfs_scratch; database = "${zfs_media}/database"; - postgres_wal = "${zfs_media}/postgres-wal"; docker = "${zfs_media}/docker"; docker_configs = "${zfs_media}/docker/configs"; home_assistant = "${zfs_media}/home_assistant";