Skip to content

Commit 3df1967

Browse files
committed
fix: tarball builder unable to run with HOME set
Fixes #338
1 parent 8f30089 commit 3df1967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/build-tarball.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ in
6868
--substituters ""
6969
7070
echo "[NixOS-WSL] Adding channel..."
71-
nixos-enter --root "$root" --command 'nix-channel --add https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz nixos-wsl'
71+
nixos-enter --root "$root" --command 'HOME=/root nix-channel --add https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz nixos-wsl'
7272
7373
echo "[NixOS-WSL] Adding default config..."
7474
install -Dm644 ${defaultConfig} "$root/etc/nixos/configuration.nix"

0 commit comments

Comments
 (0)