This repository manages dotfiles .*
under $HOME
. To use, clone this repository on $HOME/dotfiles
and run install
.
git clone https://github.com/siraken/dotfiles.git
Install Nix using Determinate Nix Installer.
If the installer prompts you to install Determinate Nix, select no
to install Nix from NixOS instead.
INFO nix-installer v3.4.1
INFO For a more robust Nix installation, use the Determinate package for macOS: https://dtr.mn/determinate-nix
Install Determinate Nix?
Selecting 'no' will install Nix from NixOS instead.
Proceed? ([Y]es/[n]o/[e]xplain):
To uninstall Nix, run the command below:
/nix/nix-installer uninstall
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.
# 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
nix store gc