- Nix 38.9%
- Shell 36.2%
- Lua 22.6%
- CSS 2.3%
- Merge declarative OMP settings into the writable runtime configuration. - Exercise first activation and repeated activation with existing user settings. |
||
|---|---|---|
| docs | ||
| home | ||
| hosts | ||
| modules/nixos | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
nix-config
A conservative workstation configuration for sjenkins.
- Arch:
prophetuses standalone Home Manager for the shared desktop profile. - NixOS: the Lenovo P16s
nomaddeclaratively manages its accounts, Hyprland,greetd/tuigreet, and Home Manager desktop profiles. - Ubuntu:
stephenj@coderuses 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.nixsupplies the shared desktop;terminal.nixsupplies 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— unifiedsystemd-homedLUKS2/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.