There was an error while loading. Please reload this page.
1 parent cde3467 commit fc1492fCopy full SHA for fc1492f
1 file changed
modules/build-tarball.nix
@@ -155,8 +155,10 @@ in
155
--system ${config.system.build.toplevel} \
156
--substituters ""
157
158
- echo "[NixOS-WSL] Adding channel..."
159
- nixos-enter --root "$root" --command 'HOME=/root nix-channel --add https://github.com/nix-community/NixOS-WSL/archive/refs/heads/${nixosWslBranch}.tar.gz nixos-wsl'
+ ${lib.optionalString config.nix.channel.enable ''
+ echo "[NixOS-WSL] Adding channel..."
160
+ nixos-enter --root "$root" --command 'HOME=/root nix-channel --add https://github.com/nix-community/NixOS-WSL/archive/refs/heads/${nixosWslBranch}.tar.gz nixos-wsl'
161
+ ''}
162
163
echo "[NixOS-WSL] Adding wsl-distribution.conf"
164
install -Dm644 ${wsl-distribution-conf} "$root/etc/wsl-distribution.conf"
0 commit comments