From fa746ca9cb702cfe00d59ba92bde57fd94b42210 Mon Sep 17 00:00:00 2001 From: joshashtondev Date: Fri, 6 Nov 2026 14:28:46 -0700 Subject: [PATCH] =?UTF-8?q?nixos:=20gen=20126=20@=20lilac=20=E2=80=94=2020?= =?UTF-8?q?26-11-06=2014:28=2026.05.20261105.c56a87d=20(Yarara)=20-----?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 AGENTS.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..10ffc9f --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,58 @@ +# .dotfiles + +NixOS + Home Manager dotfiles repo. Single flake (`flake.nix`) with three per-host configurations, sops-nix secrets, and DMS/niri desktop stack. + +## Structure + +``` +flake.nix — 3 nixosConfigurations: violet, lilac, lavender +hosts// — per-machine entrypoint (default.nix) + hardware.nix +system/ — shared NixOS config (core/*, network/*, security/*, services/, virtualisation/) +home/ — Home Manager user config for jashton +secrets/ — sops-encrypted secrets (.sops.yaml has age key rules) +``` + +## Apply / rebuild + +``` +sudo nixos-rebuild switch --flake .# +``` + +The `unix` script (installed to shell packages) wraps this: it runs the rebuild, auto-commits all changes to the dotfiles repo, and pushes. Skip it with `--no-commit`. + +Never hand-edit `hosts/*/hardware.nix` — it is a generated scan output. + +## Hosts + +| Host | Machine | Notable modules | +|------|---------|-----------------| +| violet | ThinkPad | `security/thinkpad.nix`, input-remapper, TLP (disabled), disabled lid-switch suspend | +| lilac | Framework (Intel Core Ultra 3) | `nixos-hardware/framework-intel-core-ultra-series3`, fprintd, Thunderbolt + Intel iGPU | +| lavender | Minimal remote/other | GPU enablement only | + +Every host enables: niri compositor, DMS shell with plugin-registry/greeter/calendar/files, sops-nix, home-manager. `lilac` and `violet` also open a Thunderbolt point-to-point link (`thunderbolt0`, port 4242). + +## Secrets + +Managed via sops-nix. Decrecyption uses each host's SSH host key as the age identity. Edit files under `secrets/` with: + +``` +sops secrets/secrets.yaml # decrypt/edit +sops --encrypt secrets/secrets.yaml # re-encrypt before committing +``` + +Verify `.sops.yaml` has all three host keys in its creation rules. If adding a new host, add its age public key there first. + +## Desktop stack + +- **Compositor:** niri (keybinds in `README.md` > Keybinds > Niri) +- **Shell/Dock:** DankMaterialShell (`dms`) with `dux-files`, `dux-greeter`, `dux-plugin-registry`, `dux-calendar` +- **Spotlight launcher:** DMS built-in, triggered by `Mod+Space` or 4-finger swipe (see README) +- **OSK:** custom `wvkbd-mobintl` build from `wvkbd-src` + `home/programs/{layout,keymap,config}.custom.h` C overrides +- **Gestures:** `lisgd` at startup (see README > Touchscreen gestures) + +## Git / config conventions + +- `result`, `ports.registry`, `.env`, and `nix-pad.qcow2` are gitignored (Nix generated paths and dev artifacts). +- The `find-open-port` script writes to `ports.registry` (untracked) to reserve dev ports across hosts. +- SSH client aliases for all four hosts (`lavender`, `violet`, `lilac`, `heliotrope`) are in `home/programs/git.nix` — check there for connection details, not in the repo.