Enable flakes:
export NIX_CONFIG="experimental-features = nix-command flakes"Rebuild system with specific configurations:
sudo nixos-rebuild switch --flake github:DaniFdz/dotfiles#pcFirst download the latest release
Then open a terminal and run:
wsl --import NixOS .\NixOS\ nixos-wsl.tar.gz --version 2
wsl -d NixOSAfter the initial installation, you need to update your channels once, to be able to use nixos-rebuild:
nix-channel --updateTo build the system type:
nixos-rebuild switch --flake github:DaniFdz/dotfiles#wsl