Formerly my
dotfilesrepo. I went all-in on nix and absolutely love it; you should too!
This repo is managed at the top level via flake.nix, which defines configuration for:
- My personal MacBook Pro
optimus, an old Optiplex 9020 that I picked up some years agorpi4, a Raspberry Pi 4 Model Brpi5, a Raspberry Pi 5
# Rebuild local system
sudo nixos-rebuild switch --flake .#HOSTNAME
sudo darwin-rebuild switch --flake .#HOSTNAME
# Deploy to hosts (via ./deploy/default.nix)
nix run .#deploy-rs -- .#HOSTNAME
# Create Raspberry Pi SD card image
nix build .#images.HOSTNAMESince I'm bound to forget how to set everything up on macOS, here's the TL;DR:
- Install Nix via https://github.com/NixOS/nix-installer
- Setup nix-darwin:
sudo mkdir -p /etc/nix-darwin
sudo chown $(id -nu):$(id -ng) /etc/nix-darwin
cd /etc/nix-darwin
git clone [email protected]:GregoryConrad/nix-config.git .
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#HOSTNAME- Nix (obviously)
- nix-darwin for configuring macOS to my liking
- home-manager for configuring my dotfiles, programs, and other config
- fish for my shell (with a modified fish-helix)
- Helix for text/code editing
- WezTerm for my terminal (with the Hack Nerd Font)
- I love the scripting via Lua