-
Clone this repository:
sudo git clone https://github.com/sei40kr/dotfiles.git /etc/dotfiles sudo chown -R $USER /etc/dotfiles ln -fs /etc/dotfiles ~/.dotfiles
-
Install Nix via multi-user installation (see Download Nix / NixOS):
sh <(curl -L https://nixos.org/nix/install) --daemon
-
Create a symlink from
/run
to/var/run
:printf 'run\tprivate/var/run\n' | sudo tee -a /etc/synthetic.conf /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -B # For Catalina /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t # For Big Sur and later
-
Build the configuration with
darwin-rebuild
(if./result/sw/bin/darwin-rebuild
does not exist):cd ~/.dotfiles nix --extra-experimental-features 'nix-command flakes' build '.#darwinConfigurations.<host>.system'
-
Switch to the new configuration:
./result/sw/bin/darwin-rebuild switch --flake '.#<host>'
-
Enter Nix shell (for the first time only):
nix-shell
-
Then, switch to the new configuration:
nixos-rebuild switch --flake '.#<hostname>'
Some packages are installed via Homebrew. You need to install Homebrew manually first; otherwise, the installation of those packages will be skipped.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Generate a pair of SSH keys and add it to your GitHub account:
ssh-keygen -t ecdsa
-
Install Google Chrome
-
Install Doom Emacs:
git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d ~/.emacs.d/bin/doom install