Skip to content

Commit

Permalink
Merge pull request #341 from terlar/fix-tarball-builder
Browse files Browse the repository at this point in the history
Fix tarball builder
  • Loading branch information
nzbr authored Nov 22, 2023
2 parents 7f6189c + 3df1967 commit a9287f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/build-tarball.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ in
root=$(mktemp -p "''${TMPDIR:-/tmp}" -d nixos-wsl-tarball.XXXXXXXXXX)
# FIXME: fails in CI for some reason, but we don't really care because it's CI
trap 'rm -rf "$root" || true' INT TERM EXIT
trap 'chattr -Rf -i "$root" || true && rm -rf "$root" || true' INT TERM EXIT
chmod o+rx "$root"
Expand All @@ -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 a9287f7

Please sign in to comment.