My personal dotfiles
- Install xcode:
xcode-select --install
- Install rosetta:
softwareupdate --install-rosetta
- Install nix determinate
- Install nix-darwin
- Open a nix shell with the required utilities:
nix-shell -p git stow neovim
- Open the configuration file:
nvim /etc/nixos/configuration.nix
- Enable flakes by adding:
nix.settings.experimental-features = [ "nix-command" "flakes" ];
- Run:
sudo nixos-rebuild switch
- Copy
hardware-configuration.nix
into the git's nix directory. Don't reuse the existing one.
- Generate SSH key:
ssh-keygen -t ed25519 -C "your_email@gmail.com"
- Start the SSG agent in the background:
eval "$(ssh-agent -s)"
- Add the SSH private key:
ssh-add ~/.ssh/id_ed25519
- Login to GitHub and add the public key
- Open a nix shell with the required utilities:
nix-shell -p git stow neovim
- Clone the repo:
git clone --recurse-submodules git@github.com:IdoKendo/dotfiles.git ~/.dotfiles
- Extract the files:
cd ~/.dotfiles && for dir in */; do stow "$dir"; done
- Activate the nix flake:
cd ~/.config/nix-darwin && darwin-rebuild switch --flake .
- Activate home-manager:
cd ~/.config/nix-darwin && home-manager switch --flake . -b backup