winget does not support it, run as follows
In WSL shell
explorer.exe .
z "$(wslpath 'G:\GoogleDrive')"
wsl --user root
Use NixOS.
You should remember that does not have /etc/nixos/hardware-configuration.nix
and the default username is nixos
.
wsl.exe --install --no-distribution
curl -OL "https://github.com/nix-community/NixOS-WSL/releases/download/2405.5.4/nixos-wsl.tar.gz"
wsl.exe --import NixOS $env:USERPROFILE\NixOS\ nixos-wsl.tar.gz
wsl.exe --distribution "NixOS"
sudo nix-channel --update
Setup nix and activate home-manager as written in README with kachick@wsl-nixos
wsl.exe --install "Ubuntu-24.04"
wsl.exe --distribution "Ubuntu-24.04"
Setup nix and activate home-manager as written in README with kachick@wsl-ubuntu
Disable cgroup v1 as putting .wslconfig and restart for setting up podman
winit-conf.exe generate -path=windows/WSL/.wslconfig > %UserProfile%\.wslconfig
wsl.exe --shutdown