Update nixos-wsl

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-08-26 07:11:49 +00:00
parent 26fb9785b8
commit deb460989e
6 changed files with 14 additions and 108 deletions

View File

@@ -11,7 +11,5 @@ You must build the system once with `sas.build.private = false;`. Then, connect
1. Using a separate Nix system, run `hosts/elara/build-tarball.sh`
2. Copy the generated tarball to the Elara host
3. On the Elara host, run `wsl --import NixOS $env:USERPROFILE\NixOS nixos.wsl --version 2` in PowerShell
4. `chown` your home directory to your user
5. Stop WSL with `wsl --shutdown`
6. Enable `cgroup v2` support by setting `kernelCommandLine=cgroup_no_v1=all` in `.wslconfig` in your Windows home directory
7. Optionally, run `wsl --set-default nixos` to make NixOS the default WSL distribution
4. Enable `cgroup v2` support by setting `kernelCommandLine=cgroup_no_v1=all` in `.wslconfig` in your Windows home directory
5. Optionally, run `wsl --set-default nixos` to make NixOS the default WSL distribution