Skip to content
sudermanPublic

About

system configurations & dotfiles

Resources

Stars

44 stars

Watchers

3 watching

Forks

Repository files navigation

NixOS fleet & dotfiles

One NixOS flake runs my personal infrastructure: four machines at home, one offsite at work, a small VPS in the cloud, and two laptops, all on Tailscale. A fifth home machine, bot, is joining the fleet.

Every host has a three-letter name that doubles as a private TLD. Blocky DNS, Traefik, and a custom CA kept in agenix give internal services trusted HTTPS at URLs like https://jellyfin.lux, https://hass.hub, and https://git.kit, from home or anywhere on the tailnet.

The NixOS fleet in the snow, with the unlit bot mini PC at the right and a cloud for the VPS.

The fleet

Host Role Hardware
kit My desktop and GPU box: Ollama, ComfyUI, nojoin, Forgejo, Attic Nix cache FormD T1, i7-14700K, RTX 4070 Ti SUPER, 64 GB
hub Home Assistant (Zigbee + Z-Wave), UniFi, Grafana, Beszel, ntfy, DNS 2013 Intel NUC, i3-4010U, 8 GB
lux Jellyfin, Plex, the arrs, Immich, Samba/NFS, Backblaze Intel NUC 11, i7-1165G7, 32 GB, 4x 10 TB RAID10
pow Home gym Zwift box and local backup pool 2009 Mac Pro, 2x Xeon X5570, 40 GB, RX 580
eve Offsite backup pool at work, tailnet DNS, work subnet router 2009 Mac Pro, Xeon W3540, 8 GB
dot Public web host for boomboombaby.ca behind Cloudflare Linode, 1 vCPU, 1 GB
bot June's always-on desktop (joining the fleet) Dell OptiPlex 5080 Micro, 10th-gen i5, 32 GB
cog My work laptop Framework Laptop 13, i7-1165G7, 32 GB
wit Family laptop ThinkPad T480s, i7-8550U, 16 GB

Also in hosts/: iso, a custom NixOS installer, and sim, a local test VM.

Highlights

  • Private TLDs. One services.traefik.proxy line gives a service its DNS record, reverse proxy route, IP allowlist, and CA-signed certificate. See docs/networking.org and zones/.
  • Seed-derived identities. Host SSH keys, user keys, and agenix recipients are derived from one BIP-85 hex root, recoverable from seed words kept offline, with staged fleet rotation. See secrets/ and docs/seed-rotation.org.
  • Impermanent Btrfs with disko. Declarative disk layouts, a root erased on every boot, explicit persistence, btrbk snapshots and replication, and a storage-health guard that contains a failing disk. See modules/ and storage-health.
  • Hyprland in Lua. Native Lua compositor config, Stylix theming with live light and dark switching, and Quickshell popups. See modules/home/desktop/hyprland/.

June

June is my personal AI assistant. She plans work in Emacs Org Mode and dispatches coding agents across the fleet in herdr-core sessions. This repo holds her NixOS and Home Manager wiring: modules/home/default/options/june.nix and modules/home/users/june/. Her daemon is configured on kit today, and bot, her own desktop, is joining the fleet.

Exploring the repo

  • hosts/: hardware, disk layouts, and services for each machine
  • modules/: shared NixOS and Home Manager modules and custom options (persist, tmpfiles, btrbk, traefik)
  • zones/ and docs/networking.org: zone address maps, the custom CA, Blocky, Traefik, and Tailscale routing
  • secrets/: seed-based identity recovery, agenix-rekey, and root rotation
  • users/: NixOS user and service identities
  • packages/: the nixos, agenix, derive, and sshed CLI wrappers and helper builders
  • docs/: architecture notes and runbooks

Built with

This flake is laid out with blueprint and devshell, and builds on agenix, agenix-rekey, impermanence, disko, home-manager, stylix, nix-index-database, nix-flatpak, nixos-hardware, and NUR.

The devshell carries the commands I use to run it:

nix develop        # enter the devshell with nixos, agenix, and browse
nixos add host     # scaffold a new host (or: nixos add user)
nixos generate     # regenerate derived keys, certificates, and rekeyed secrets
nixos deploy       # deploy a host configuration

About

system configurations & dotfiles

Resources

Stars

44 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages