- clone repo to user's root folder
- install nix
- install nix-darwin
- update the system
cd $HOME
git clone https://github.com/suddenlyGiovanni/dotfiles.git
For a hassle-free experience, you can follow the instruction to install Nix on Zero to Nix: https://zero-to-nix.com/start/install
Note:
You'll be using an upstream nix installer managed by determinate systems
Follow the instructions on nix-darwin repos on how to install it; choose the flake version.
nix run nix-darwin -- switch --flake ~/dotfiles/nix/darwin
Once you have modified the system, run the following command to apply the changes to nix:
darwin-rebuild switch --flake ~/dotfiles/nix/darwin