- Install Determinate Nix:
curl -fsSL https://install.determinate.systems/nix | sh -s -- install- Clone this repository:
git clone --depth 1 \
https://github.com/siraken/dotfiles.git \
~/repos/github.com/siraken/dotfiles- Install
nix-darwin
cd dotfiles sudo nix run nix-darwin/nix-darwin-25.05#darwin-rebuild -- switch --flake .#darwin --impure
After the installation, you may need to restart your terminal. The darwin-* commands are available in your shell.
- Run
darwin-rebuildorhome-manager
# Build darwin flake using: sudo darwin-rebuild build --flake .#THE_NAME --impure sudo darwin-rebuild switch --flake .#THE_NAME --impure # ex) sudo darwin-rebuild switch --flake .#darwin --impure
or
nix run home-manager/release-25.05 -- switch --flake .#THE_NAME --impure # ex) nix run home-manager/release-25.05 -- switch --flake .#wsl-ubuntu --impure
To uninstall Nix, run the command below:
/nix/nix-installer uninstall
nix store gc