From 3914d2e0b623f280c76b0fc8a66c1007ef5d496f Mon Sep 17 00:00:00 2001 From: Graham McInitre Date: Thu, 16 Jul 2026 08:50:56 -0500 Subject: [PATCH] fix: remove EXIT trap and fix $USER expansion in DATABASE_URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove 'trap ... EXIT' that kills services when entering the dev shell - Fix DATABASE_URL: $USER → $USER (no backslash) so bash expands it instead of passing the literal string 'USER' as the PG role name --- nix/shell.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nix/shell.nix b/nix/shell.nix index cfc1e717..f6de96cb 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -264,7 +264,7 @@ mkShell { export PGHOST="${pgHost}" export PGPORT="${pgPort}" export PGUSER="$USER" - export DATABASE_URL="ecto://\$USER@${pgHost}:${pgPort}/towerops_dev" + export DATABASE_URL="ecto://$USER@${pgHost}:${pgPort}/towerops_dev" # Redis connection export REDIS_URL="redis://${pgHost}:${redisPort}/0" @@ -296,9 +296,6 @@ mkShell { fi fi - # Register trap to stop services on shell exit - trap '${stopServices}/bin/stop-services' EXIT - # Install pre-commit hooks ${pre-commit-check.shellHook}