Files
.dotfiles/AGENTS.md
T

2.7 KiB

.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/<name>/      — 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 .#<host>

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.