-
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
mkdir -p ~/.config/home-manager/ && \
rm -rf ~/.config/home-manager/* && \
curl -L https://github.com/sharpchen/nix-config/archive/refs/heads/main.tar.gz \
| tar -xz -C ~/.config/home-manager/ --strip-components=1
- restore
home-manager switch --flake ~/.config/home-manager#$USER
pwsh -noprofile -f ./install.ps1
pwsh -noprofile -f ./dotfiles.ps1