Skip to content

sharpchen/nix-config

Repository files navigation

nix-config

Install on New Unix Machine

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

Restore on Windows

Whole machine

pwsh -noprofile -f ./install.ps1

Dotfiles only

pwsh -noprofile -f ./dotfiles.ps1

About

My config powered by nix

Topics

Resources

Stars

Watchers

Forks