My development environment

3f27572 align org-mode tags one space after text

5 hours ago

3901b13 hide paper from elfeed by default

11 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