From ef6e303a6032f4423303a02e9a970dfae3f8ec98 Mon Sep 17 00:00:00 2001 From: DannyDannyDanny Date: Tue, 31 Mar 2026 14:28:35 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20run=20git=20from=20live=20system=20inste?= =?UTF-8?q?ad=20of=20chroot=20in=20provisioning=20=F0=9F=94=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chroot had no nix in PATH; clone directly into /mnt/etc/dotfiles from the live installer environment instead. --- scripts/post-install-provision.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/post-install-provision.sh b/scripts/post-install-provision.sh index 2532b11..a0ac006 100755 --- a/scripts/post-install-provision.sh +++ b/scripts/post-install-provision.sh @@ -14,10 +14,10 @@ mount /dev/mapper/crypted /mnt mount /dev/disk/by-partlabel/disk-main-ESP /mnt/boot 2>/dev/null || true for d in dev proc sys; do mount --bind /$d /mnt/$d; done -# Clone dotfiles +# Clone dotfiles (run git from live system, clone directly into /mnt) if [[ ! -d /mnt/etc/dotfiles ]]; then - chroot /mnt nix run --extra-experimental-features "nix-command flakes" nixpkgs#git -- \ - clone "$REPO" /etc/dotfiles + nix run --extra-experimental-features "nix-command flakes" nixpkgs#git -- \ + clone "$REPO" /mnt/etc/dotfiles echo "[ok] dotfiles cloned" else echo "[skip] dotfiles already present"