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