My personal macOS Home-Manager config
Manages dotfiles and cli tools via Home-Manager/Nix and casks via Homebrew
- Install nix using the Determinate Nix Installer
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
Restart the shell after installation
- Add nix-community cache
nix run nixpkgs#cachix -- use nix-community
- Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Disable analytics
/opt/homebrew/bin/brew analytics off
- Clone config
git clone [email protected]:okkdev/dotnix.git
- Symlink config
mkdir ~/.config
ln -s (pwd)/dotnix ~/.config/home-manager
- Activate config
nix run . -- switch
🚨 Fish needs to be added to /etc/shells
manually:
echo $HOME/.nix-profile/bin/fish | sudo tee -a /etc/shells
chsh -s $HOME/.nix-profile/bin/fish
home-manager switch
nix flake update
home-manager switch
brew update
brew upgrade
sudo launchctl limit maxfiles 1024 unlimited
sudo launchctl stop org.nixos.nix-daemon
sudo launchctl start org.nixos.nix-daemon