dotfiles
dotfiles copied to clipboard
My dotfiles for NixOS & Darwin
dotfiles
Install
-
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
Darwin
-
Install Nix via multi-user installation (see Download Nix / NixOS):
sh <(curl -L https://nixos.org/nix/install) --daemon -
Create a symlink from
/runto/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-rebuilddoes 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>'
NixOS
-
Enter Nix shell (for the first time only):
nix-shell -
Then, switch to the new configuration:
nixos-rebuild switch --flake '.#<hostname>'
Things to Do Manually
Darwin
Install Homebrew
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