My development environment

e22635e ace-window only considers current frame

11 hours ago

00b811e merge init files into categories

17 hours ago


My dev environment powered by Nix.


#Install Nix

curl -L https://nixos.org/nix/install | sh

#Install Homebrew

I use Homebrew Cask to install Applications that don't need to config.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

#Enable Nix flakes feature

mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
sudo launchctl kickstart -k system/org.nixos.nix-daemon


git clone git@git.sr.ht:~goofansu/nix-config ~/.config/nix-config
nix run nix-darwin -- switch --flake ~/.config/nix-config


#Build system

darwin-rebuild switch --flake ~/.config/nix-config

#Upgrade packages

cd ~/.config/nix-config
nix flake update
darwin-rebuild switch --flake ~/.config/nix-config

#Garbage collection

According to nix-darwin wiki:

sudo nix-collect-garbage -d