| Distro | NixOS |
| Desktop | Hyprland + Quickshell |
| Editor | Helix + Tmux |
| Files | Yazi |
| Keyboard | TBK Mini + QMK |
| Path | Purpose |
|---|---|
inventory/ |
Users, hosts, clusters, networks, roles, access tiers, and alerts |
modules/hosts/ |
Host-specific NixOS modules |
modules/hardware/ |
Machine-model modules and power tuning |
modules/{deployment-roles,services,system}/ |
Reusable NixOS behavior |
modules/home/ |
Rootless, standalone Home Manager tree |
modules/pkgs/ |
Packages shared by NixOS and Home Manager |
modules/theme/ |
Theme tokens and templates |
modules/diagrams/ |
Diagram builds |
modules/devices/ |
Self-contained non-NixOS device builds |
modules/nix/ |
Flake outputs, checks, installers, and codegen |
secrets/ |
SOPS-encrypted data and age identity envelopes |
nix develop
nix flake check
nix run .#inventory-dump
nix build .#intent-report
nix build .#diagrams
Open pull requests into unstable on Forgejo. GitHub is a backup copy.
sudo nixos-rebuild switch --flake .#<host>
- Boot a NixOS ISO, clone this repository, and verify the target disk with
lsblkagainstinventory/hosts/<owner>/<host>.nix. - Partition it:
nix run github:nix-community/disko -- --mode disko --flake .#<host>. - Install the mandatory password identity, optionally including Tailscale:
nix run .#bootstrap-deploy -- /mnt [--with-tailscale]. - Install:
nixos-install --root /mnt --flake .#<host> --no-root-passwd. - Reboot.
ARM: nix build .#kexec --system aarch64-linux, run result as root on the host, then install as above.
Remote: nix run .#install-<host> and type WIPE <host>.
home-manager switch --flake '.#<user>@<host>'
Without Nix:
nix build '.#homeConfigurations."user-0@headless".config.home.portablehome'
./result/deploy.sh --dry-run user@host
./result/deploy.sh user@host
| Area | Encrypted data | Identity source | Installed key |
|---|---|---|---|
| Login bootstrap | secrets/bootstrap/password.yaml |
secrets/bootstrap/password.age.key.enc |
/persist/system/var/lib/sops-nix/bootstrap-password.key |
| Tailnet bootstrap | secrets/bootstrap/tailscale.yaml |
secrets/bootstrap/tailscale.age.key.enc |
/persist/system/var/lib/sops-nix/bootstrap-tailscale.key |
| System services | secrets/system.yaml |
secrets/system.age.key.enc |
/persist/system/var/lib/sops-nix/key.txt |
| Home Manager | modules/home/users/user-0/secrets/secrets.yaml |
secrets/identities/home-user-0.age.key.enc |
~/.config/sops/age/keys.txt |
| Laptop Wi-Fi | secrets/wifi/credentials.yaml |
secrets/wifi/age.key.enc |
~/.config/sops/age/wifi.key |
Install the keys as the target user:
nix run path:.#deploy-home-secrets
nix run path:.#deploy-system-secrets
Hosts join with the pre-auth key in secrets/bootstrap/tailscale.yaml (bootstrap-deploy --with-tailscale).
nix build .#diagrams-tailnet
sudo headscale nodes tag -i <id> -t tag:first,tag:second
A guest device gets its own short-lived key:
sudo headscale preauthkeys create --user <id> --expiration 24h
Hosts that this repository does not manage are in inventory/routed-hosts/.
| Device | Build | Deployment |
|---|---|---|
GL.iNet router-0 |
nix run .#router-0-firmware |
nix run .#router-0-firmware-flash then nix run .#router-0-config |
Sipeed kvm-desk-0 |
nix build .#kvm-desk-0-config-overlay-empty |
Flash vendor firmware manually and push overlays over SSH |
Pebble pebble-round-2 |
nix build .#pebble-round-2-firmware |
Sideload result/firmware.pbz through the mobile app |
