To bootstrap NixOS with my dotfiles, follow these steps:
- Clone the repository to ~/dotfiles
- Change the username defined configuration.nix
- Run
nix flake update ~/dotfiles - Run
~/dotfiles/scripts/switch.sh
sudo nix-collect-garbage --delete-older-than 7d
sudo nix-store --optimiseTo bootstrap nix on MacOS with my dotfiles, follow these steps:
- Clone the repository to ~/dotfiles
- Change the username defined configuration.nix
- Install Nix on MacOS
sh <(curl -L https://nixos.org/nix/install) - Run
nix flake update ~/dotfiles - Run
nix --extra-experimental-features nix-command --extra-experimental-features flakes run nix-darwin -- switch --flake ~/dotfiles#macbook-m1
After bootstrapping, you can update your system by running ~/dotfiles/scripts/switch.sh
