No description
  • Nix 38.9%
  • Shell 36.2%
  • Lua 22.6%
  • CSS 2.3%
Find a file
sjenkins cf6287feeb fix(omp): preserve onboarding state on activation
- Merge declarative OMP settings into the writable runtime configuration.
- Exercise first activation and repeated activation with existing user settings.
2026-11-22 09:23:36 -06:00
docs fix(omp): preserve onboarding state on activation 2026-11-22 09:23:36 -06:00
home fix(omp): preserve onboarding state on activation 2026-11-22 09:23:36 -06:00
hosts refactor: share NixOS workstation modules 2026-11-22 08:42:33 -06:00
modules/nixos refactor: share NixOS workstation modules 2026-11-22 08:42:33 -06:00
scripts add root luks recovery tools and nomad waybar 2026-11-15 11:53:35 -06:00
tests fix(omp): preserve onboarding state on activation 2026-11-22 09:23:36 -06:00
.gitignore init commit 2026-11-01 10:11:51 -06:00
flake.lock chore: update workstation configuration 2026-11-21 14:36:42 +00:00
flake.nix feat(coder): share Nomad terminal environment 2026-11-22 09:08:09 -06:00
README.md feat(coder): share Nomad terminal environment 2026-11-22 09:08:09 -06:00

nix-config

A conservative workstation configuration for sjenkins.

  • Arch: prophet uses standalone Home Manager for the shared desktop profile.
  • NixOS: the Lenovo P16s nomad declaratively manages its accounts, Hyprland, greetd/tuigreet, and Home Manager desktop profiles.
  • Ubuntu: stephenj@coder uses standalone Home Manager for shared terminal tools and OMP; Ubuntu owns the machine and account.

This repository intentionally starts small. It contains no secrets, credentials, private keys, Kubernetes/Talos configs, browser state, container data, VM disks, or hardware placeholders.

Layout

  • flake.nix — inputs, formatter, development shell, standalone Home Manager, and guarded NixOS outputs.
  • home/sjenkins/ — common.nix supplies the shared desktop; terminal.nix supplies portable terminal settings; host profiles add machine-specific settings.
  • home/stephenj/coder.nix — Ubuntu/Coder user profile.
  • modules/nixos/ — shared NixOS system, desktop, Podman, Tailscale/SSH, and systemd-homed components imported by both host configurations.
  • hosts/nomad/ — NixOS laptop configuration; its machine-derived hardware and state-version modules are generated by the bootstrap script.
  • hosts/prophet/ — NixOS scaffold and the hardware/reinstall checklist.
  • scripts/bootstrap-nomad-hardware — seeds Nomad's hardware/state modules from its working NixOS installation.
  • docs/migration-inventory.md — explicit migration decisions and deferred work.
  • docs/accounts.md — local break-glass/bootstrap account model.
  • docs/nomad.md — laptop activation, desktop ownership, and deferred YubiKey/encrypted-home design constraints.
  • docs/pi.md — managed Pi binary, configuration, package pins, and mutable credential/state boundaries.
  • docs/neovim.md — managed LazyVim source configuration, plugin lock, and mutable runtime-data boundary.
  • docs/podman.md — rootless Podman/Docker-API compatibility, sub-ID mapping, and encrypted-home lifecycle constraints.
  • docs/root-luks.md — guarded TPM2 root unlock, recovery credential, and LUKS-header backup procedures.
  • docs/storage-encryption.md — unified systemd-homed LUKS2/FIDO2 design for the daily encrypted home and local recovery account.

First use: Home Manager on Arch

Do this only after verifying the multi-user Nix daemon and /nix/store on the machine being configured. Install Arch's hyprlock package for its PAM configuration, and back up Prophet's existing Hyprland and Waybar configuration before switching to the shared desktop; monitor and workspace rules will change.

cd ~/repos/nix-config
nix flake check
nix run .#home-manager -- switch \
  --flake .#sjenkins@prophet -b hm-before-nix-config

On prophet, use --flake .#local@prophet for the local recovery account or .#sjenkins@prophet for the shared desktop profile. Test lock and unlock from an active session with a recovery TTY available. Idle suspend makes Prophet unreachable over SSH. Read docs/accounts.md before configuring identities.

For the NixOS Nomad deployment, follow docs/nomad.md. It uses nixos-rebuild, not standalone Home Manager, and deliberately defers YubiKey PAM and per-user encrypted-home integration until they have a TTY-tested recovery procedure.

To update inputs deliberately:

nix flake update
nix flake check

Review and commit flake.lock changes separately. Do not update inputs during an unrelated config change.

NixOS host outputs

nomad becomes available after scripts/bootstrap-nomad-hardware stages its real hardware and state-version modules; use the deployment procedure in docs/nomad.md. prophet remains guarded until its real hardware configuration exists. Do not use the example hardware file as a substitute; read hosts/prophet/README.md and the unified docs/storage-encryption.md design first.

Secret policy

Never put secrets in Nix expressions or Home Manager files: store paths are world-readable. Keep credentials out of Git and out of generated config files. When a configuration actually needs a secret, add a dedicated encrypted secret workflow (for example sops-nix) and document its recovery procedure.