-
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 nixpkgs
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
- install home-manager as standalone
nix-shell '<home-manager>' -A install
- clone repo
nix-shell -p git
mkdir -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