Skip to content

okkdev/dotnix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.nix

My personal macOS Home-Manager config

Manages dotfiles and cli tools via Home-Manager/Nix and casks via Homebrew

Install steps

  1. 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

  1. Add nix-community cache
nix run nixpkgs#cachix -- use nix-community
  1. Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Disable analytics
/opt/homebrew/bin/brew analytics off
  1. Clone config
git clone [email protected]:okkdev/dotnix.git
  1. Symlink config
mkdir ~/.config
ln -s (pwd)/dotnix ~/.config/home-manager
  1. 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

Apply new config

home-manager switch

Update packages

nix flake update
home-manager switch
brew update
brew upgrade

Troubleshooting

Too many open files

sudo launchctl limit maxfiles 1024 unlimited
sudo launchctl stop org.nixos.nix-daemon
sudo launchctl start org.nixos.nix-daemon

About

❄️ macOS home-manager nix config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published