Skip to content

Commit 02d19ae

Browse files
committed
test channel-gate
1 parent 5482f11 commit 02d19ae

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/build-tarball.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ in
155155
--system ${config.system.build.toplevel} \
156156
--substituters ""
157157
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'
158+
${lib.optionalString config.nix.channel.enable ''
159+
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+
''}
160162
161163
echo "[NixOS-WSL] Adding wsl-distribution.conf"
162164
install -Dm644 ${wsl-distribution-conf} "$root/etc/wsl-distribution.conf"

0 commit comments

Comments
 (0)