install nix
enable flakes
sudo sh -c'echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf'
- add home-manager channel
nix-channel --add https://nixos.org/channels/nixos-unstable nixpkgsnix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-managernix-channel --update
- install home-manager as standalone
nix-shell'<home-manager>' -A install
- clone repo
nix-shell -p gitmkdir -p~/.config/home-manager/&&cd~/.config/home-manager/&& git clone https://github.com/sharpchen/nix-config.git.
sudo nixos-rebuild switch --flake~/.config/home-manager#nixos-wsl
home-manager switch --flake~/.config/home-manager#sharpchen
pwsh -noprofile -f ./install.ps1
pwsh -noprofile -f ./dotfiles.ps1