My config files and scripts.
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
find nix/scripts/$(uname -m | sed 's/arm64/aarch64/')-darwin -type f \( -name build -o -name build-switch \) -exec chmod +x {} \;
Ensure the build works before deploying the configuration, run
nix run .#build
Alter your system with this command:
nix run .#build-switch
https://nix-community.github.io/NixOS-WSL/install.html
In /etc/nixos/configuration.nix
add
environment.systemPackages = [ git ];
and follow this guide to update username
https://nix-community.github.io/NixOS-WSL/how-to/change-username.html
Clone repo, and cd into it. Ensure the build works before deploying the configuration, run
sudo nixos-rebuild --flake .#wsl test
Alter your system with this command:
sudo nixos-rebuild --flake .#wsl switch