-
enable flakes
multi-user
sudo sh -c 'echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf'
- add home-manager channel
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager && nix-channel --update
- install home-manager
nix-shell '<home-manager>' -A install
- clone repo
rm -rf ~/.config/home-manager/* && \
git clone https://github.com/sharpchen/nix-config.git ~/.config/home-manager/
- restore
home-manager switch --flake ~/.config/home-manager#$USER
pwsh -noprofile -f ./install.ps1
pwsh -noprofile -f ./dotfiles.ps1