Skip to content

Commit

Permalink
fix: tarball builder unable to run with HOME set
Browse files Browse the repository at this point in the history
Fixes #338
  • Loading branch information
terlar committed Nov 22, 2023
1 parent 1e42cff commit 5c8f603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/build-tarball.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ in
--substituters ""
echo "[NixOS-WSL] Adding channel..."
nixos-enter --root "$root" --command 'nix-channel --add https://github.com/nix-community/NixOS-WSL/archive/refs/heads/main.tar.gz nixos-wsl'
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'
echo "[NixOS-WSL] Adding default config..."
install -Dm644 ${defaultConfig} "$root/etc/nixos/configuration.nix"
Expand Down

0 comments on commit 5c8f603

Please sign in to comment.