nixos

This flake is where my other projects get used day to day: base24-themes, birdland, devfmt, freecad-flake, and pressbox are all inputs to this flake.

Source: github.com/chrisppy/nixos

My personal NixOS configuration, managed as a Nix flake. Every host is named after an Appalachian ridge, and this repo is the line that runs through them.

Hosts

HostPlatform
blueridgex86_64-linux
sidelingx86_64-linux
smokyx86_64-linux

Installer ISO

just iso (or nix build .#iso) builds a minimal installer at result/iso/. It boots into my user with base's shell, ssh key, nix settings and caches, plus ZFS, bcachefs, disko, nixos-facter and tack, and carries this checkout at /etc/ridgeline. To set up a host from it:

sudo nixos-facter -o facter.json  # hardware report for modules/hosts/<host>/facter.json
sudo disko-install --flake /etc/ridgeline#<host> --disk main /dev/<disk>

Structure

modules/
  hosts/      one folder per host: host.nix, imports.nix, disks, network, facter.json
  features/   everything a host can import, one file (or folder) per feature
  meta/       the flake's own plumbing: configurations, owner, lib, devshell
secrets/      sops-nix encrypted secrets

Every .nix file under modules/ is imported (flake-parts, via devfmt's importTree). A feature adds to the NixOS classes it needs (flake.modules.nixos.<class>), and a host's imports.nix picks classes. Programs are configured by wrapping them (nix-wrapper-modules) rather than by writing files into home directories: there is no Home Manager.

Inputs

Inputs are pinned with tack in .tack/pins.toml, locked in .tack/pins.lock.json, so there is no flake.lock. The flake still works as usual (nixos-rebuild --flake, nix build); nix only reads the lock.

  • just update moves every pin, or just update-input nixpkgs just one. Every host has tack v2 installed, from the tack pin.
  • just lists the other recipes: switch, build <host>, upgrade (pull tested-<host> now), check, fmt.
  • The "Update tack pins" workflow does that daily and commits the lock; CI then promotes each host that builds to tested-<host> for autoUpgrade.
  • .tack/default.nix is tack's resolver, vendored under EUPL-1.2.

Key inputs