From 4952e5224d9278639687829c89c98514a55361d8 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Thu, 23 Jul 2026 09:43:11 +1000 Subject: [PATCH] fix: default PROXMOX_REMOTE_REPO_DIR to SSH user's home dir /root/nixos was only correct when PROXMOX_SSH_USER=root. Now that it defaults to wayne, use /home/${PROXMOX_SSH_USER}/nixos so git clone goes somewhere the SSH user can actually write to. Co-Authored-By: Claude Sonnet 4.6 --- scripts/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env.sh b/scripts/env.sh index 4aa586f..22860a7 100755 --- a/scripts/env.sh +++ b/scripts/env.sh @@ -30,7 +30,7 @@ # (from this checkout's own `origin` remote) the first time it doesn't # find it, installing build tooling via scripts/codex-setup.sh, then # `git pull`s it before every subsequent build. -: "${PROXMOX_REMOTE_REPO_DIR:=/root/nixos}" +: "${PROXMOX_REMOTE_REPO_DIR:=/home/${PROXMOX_SSH_USER}/nixos}" # Storage pool names -- Proxmox's own stock-install defaults, but this # varies a lot by setup (ZFS pool name, custom LVM-thin volume, etc.).