nix-shell -p git home-manager
mkdir -p "$HOME/.config/nix-config"
git clone "https://github.com/BeeHiveJava/nix-config.git" "$HOME/.config/nix-config"
git pull --rebase && sh "nixos.sh"
git pull --rebase && sh "nixos-system.sh"
git pull --rebase && sh "nixos-home.sh"
-
Follow steps from nix-community/NixOS-WSL and install NixOS.
-
Update to latest channels:
sudo nix-channel --add "https://nixos.org/channels/nixos-24.05" "nixos" sudo nix-channel --update sudo nixos-rebuild switch
-
Restart NixOS:
wsl -t "NixOS" wsl -d "NixOS"