Configuration files for my NixOS and nix-darwin machines
  • Nix 81.9%
  • Python 13.2%
  • HCL 2.7%
  • CSS 1.1%
  • TypeScript 0.6%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-06 03:04:02 +00:00
.github/workflows Skip tofu CI 2026-11-14 18:32:24 +01:00
bin Use custom icons in README.md 2026-11-11 10:10:08 +01:00
modules Install karabiner-elements using homebrew cask 2026-12-03 11:12:43 +01:00
tofu Skip tofu CI 2026-11-14 18:32:24 +01:00
.envrc Allow tofu to be run locally 2026-11-14 15:29:23 +01:00
.gitignore remote-pi: Self-host the relay on spencer 2026-11-25 14:32:57 +01:00
AGENTS.md Add signal-api service and switch failure notifications from Telegram to Signal 2026-11-09 13:05:25 +01:00
flake.lock chore: Update flake.lock 2026-12-06 03:04:02 +00:00
flake.nix crosspoint-sync: take package and module from the project flake 2026-11-18 22:10:15 +01:00
justfile Refuse deploy when local branch is behind upstream 2026-11-25 16:54:19 +01:00
LICENSE initial commit 2023-06-28 20:50:06 +02:00
README.md chore: Generate README.md 2026-12-03 10:04:21 +00:00

nix-config

Configuration files for my NixOS and nix-darwin machines.

Very much a work in progress.

Services

This section is generated automatically from the Nix configuration using GitHub Actions and this cursed Nix script

alison

Icon Name Description Category
deCONZ Zigbee gateway Smart Home
ESPHome ESP32/ESP8266 firmware dashboard Smart Home
Gatus Service monitoring tool Services
Grafana Platform for data analytics and monitoring Observability
Home Assistant Home automation platform Smart Home
OpenCCU Homematic IP CCU Smart Home
Prometheus Monitoring system & time series database Observability

aria

Icon Name Description Category
Immich Self-hosted photo and video management solution Media

emily

Icon Name Description Category
Audiobookshelf Audiobook and podcast player Media
Bazarr Subtitle manager Arr
CrossPoint Sync Reading progress sync for KOReader e-readers Services
Deluge Torrent client Downloads
Hermes Self-improving AI agent Services
Immich Self-hosted photo and video management solution Media
Jellyfin The Free Software Media System Media
Jellyseerr Media request and discovery manager Arr
Keycloak Open Source Identity and Access Management Services
keymap-editor ZMK keymap editor backed by Forgejo Services
leseratte Hardcover to OPDS book downloader Arr
Microbin A minimal pastebin Services
Miniflux Minimalist and opinionated feed reader Services
Nextcloud Enterprise File Storage and Collaboration Services
Paperless-ngx Document management system Services
Prowlarr PVR indexer Arr
Radarr Movie collection manager Arr
Radicale Free and Open-Source CalDAV and CardDAV Server Services
SABnzbd The free and easy binary newsreader Downloads
slskd Web-based Soulseek client Downloads
Sonarr TV show collection manager Arr
UniFi UniFi network controller Services
Vaultwarden Password manager Services

mona

Icon Name Description Category
Printercam Live 3D printer camera stream Media
zigbee2mqtt Zigbee gateway Smart Home

spencer

Icon Name Description Category
Forgejo A painless, self-hosted Git service Services

Installation runbook (NixOS)

Build an installer ISO for the host being (re)installed:

just build-iso <host>

The image carries this flake at /etc/nixos, disko and the host's ed25519 host key, which is decrypted from secrets/hostkeys at build time. Capture the key once while the host still runs:

just save-host-key <host>

The heavy lifting happens at install time: nixos-install fetches the host's closure from cache.nixos.org and the flake inputs (including the secrets repo) over the network. The build itself is a ~1 GiB minimal installer, so it takes minutes even through the emulated linux-builder.

SSH into the target host with the root account

ssh root@<host-ip>

Partition and mount the drives with the host's disko config, then clone this repository into the new root.

disko --mode destroy,format,mount --flake /etc/nixos#<host>
git clone ssh://forgejo@git.notthebe.ee:2222/notthebee/nix-config.git /mnt/etc/nixos
install -Dm600 /root/.ssh/id_ed25519 /mnt/persist/ssh/ssh_host_ed25519_key

Keeping the host key across the reinstall is what lets agenix decrypt the secrets and system.autoUpgrade fetch over forgejo afterwards.

Install the system, unmount the filesystems and reboot:

nixos-install \
--root "/mnt" \
--no-root-passwd \
--flake "/mnt/etc/nixos#<host>"
umount /mnt/boot/efis/*
umount -Rl "/mnt"
zpool export -a
reboot