nixos-configs
John's personal NixOS flake. It declares and builds all of his machines — six
NixOS hosts (laptops, a media center, a workstation, a Steam Deck, a ZFS
server, and a live-USB image), plus a Darwin/macOS host — from a single
flake.nix. Machine configuration lives in machines/<hostname>/,
system-level roles (desktop, audio, nvidia, wireguard, k3s-node, media-center,
…) live in roles/, per-user home-manager configuration lives in home/
(with home/roles/ for reusable home roles), and self-built packages live in
packages/.
Usage
Build and apply a host (NixOS, requires sudo on the target machine):
sudo nixos-rebuild switch --flake .#<hostname>
Darwin:
darwin-rebuild switch --flake .#johno-macbookpro
Home-manager only, or validation without applying:
home-manager switch --flake .#johno
nixos-rebuild build --flake .#<hostname>
nix flake check
See AGENTS.md for the full machine list, the dual-track nixpkgs setup
(stable / unstable / qt-pinned), custom flake apps (update-doomemacs,
update-opencode, rotate-wallpaper, upgrade, bootstrap,
build-liveusb), and the conventions for adding new machines, roles, and
packages.