- Python 49.2%
- TypeScript 25.5%
- Nix 9.6%
- Shell 6.1%
- Lua 4.5%
- Other 5.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| docs | ||
| files | ||
| hosts | ||
| modules | ||
| .gitignore | ||
| .luarc.json | ||
| .stylua.toml | ||
| AGENTS.md | ||
| flake.lock | ||
| flake.nix | ||
| home.nix | ||
| options.nix | ||
| README.md | ||
| Taskfile.yml | ||
home-manager
Home Manager setup on Arch
Usage
task setup
# And then assuming the system hostname is registered
task switch
home-manager switch --flake .#ginjiruu@<hostname> -b backup
nix flake update
# after nix flake update: if activation warns about GPU drivers, run
# sudo $(which non-nixos-gpu-setup)
Layout
home.nix shared base — keep host divergence OUT of here
hosts/arch-ws.nix desktop deltas (LG panel tuning, gamescope pin)
hosts/wayfinder-ws.nix laptop deltas (touchpad, focus-follows-mouse)
files/hypr/hyprland.lua shared lua (stylua-formatted)
files/hypr/workspaces.lua shared scratch-workspace rules
files/hypr/hosts/*.lua per-host lua, appended after the shared file
files/dms/ dms backup tarball for cross-host config parity
files/bin/ laptop session-glue scripts (theme sync watchers)
files/autostart/ KeePassXC autostart .desktop (laptop)
files/systemd/ generator-unit drop-ins we own (laptop)
files/opencode/ opencode.json + AGENTS.md (shared, both hosts)
files/helix/themes/ helix themes written by hx-theme-sync (laptop)
docs/ session-record docs (migrated from the CustomDesktop
repo 2026-09-29); "docs NN" below = docs/NN-*.md
Host lua is appended via lib.mkAfter on extraConfig, so a later
hl.config() in the host file overrides the shared one.
Scope
Managed (HM-owned, store-backed symlinks):
~/.config/hypr/hyprland.lua— fromfiles/hypr/hyprland.lua+ host lua~/.config/hypr/workspaces.lua— viaextraLuaFiles~/.config/hypr/binds-user.lua— viaextraLuaFiles, identical on all hosts. Edit keybinds here; the DMS Control Center keybind editor writes~/.config/hypr/dms/binds-user.lua, which is no longer required byhyprland.lua(it stays around, inert).~/.config/hypr/.luarc.json+.stylua.toml— lua_ls/stylua config (repo-root copies double as the settings for editing this repo itself).~/.config/opencode/opencode.json+AGENTS.md— shared opencode config, identical on all hosts (files/opencode/; converted from arch-ws's V1 config to native V2). Providers:vllm(session model, arch-ws GPU via LAN IP),vllm-paro, and arch-ws's three localllama-*endpoints (inert on wayfinder).~/.config/opencode/cli.json/tui.jsoncare deliberately NOT managed — they reference host-local herdr plugin files. First switch: delete the pre-existing real files at both paths (rule 9).~/.config/voxtype/config.toml— voxtype dictation config, identical on all hosts (files/voxtype/; keybinds already shared viabinds-user.luaSUPER+;). Binaries/units follow the syncthing pattern: pacman/AUR ownsvoxtype/voxtype-bin,home.nixmirrors the user unit + enablement. Host-local, NOT HM's territory (both one-time, both survive switches): the whisper model (~1.6G,~/.local/share/voxtype/models) viavoxtype setup --download, and the engine variant viasudo voxtype setup gpu --enable— the source-build package defaults the/usr/bin/voxtypesymlink tovoxtype-native(CPU!) and a package upgrade can reset it; check withvoxtype info accel, re-run the setup command if GPU dropped. First switch on arch-ws: delete the pre-existing real file (rule 9).~/.config/kitty/kitty.conf—programs.kitty, fully unified inhome.nix, byte-identical on all hosts (14 pt font, blur, tab-bar layout, window/tab keybinds; ported from the loose~/.config/kittyfiles on 2026-10-08).package = null(pacman owns the binary —my.pacman.packages). No daemon unit: kitty exits with its last window, so the hypr bind (kitty --single-instance) lazily spawns the instance and later launches join it over the singleton socket (allow_remote_control yes). SIGUSR1 live-reloads config (moduleonChange+hx-theme-sync). Colors are split out tofiles/kitty/dank-dark.conf(appended viaextraConfig) so hosts can diverge without diverging kitty.conf: wayfinder-ws dropskitty/{dark,light,no-preference}-theme.auto.confslots in (hosts/wayfinder-ws.nix) and kitty follows DMS light/dark natively via the portal (kitty ≥0.38, doc 12); arch-ws ships no slots and stays dank-dark-locked for its OLED panel.cleanKittyAutoThemesmoves DMS-era real*-theme.auto.confstrays aside (kitty ≥0.38 consumes them — no longer inert). First switch: themigrateKittyConfigactivation moves the pre-existing realkitty.conftokitty.conf.pre-hm.bak.~/.config/starship.toml— adopted from arch-ws (wayfinder was running starship defaults);starship init fishalready fires inconfig.fish. First switch on arch-ws:migrateStarshipConfigmoves the real file to.pre-hm.bak.
Laptop-only (hosts/wayfinder-ws.nix; docs 07/11/12/13/15), all migrated
from loose host files on 2026-09-28:
- Units
gsd-xsettings+dconf-theme-sync— realsystemd.user.services. ~/.local/bin/{dconf,hx}-theme-sync— store-backed, executable.- KeePassXC autostart
.desktop+ the generator-unit drop-in that orders it after the DMS tray host. Never resurrectkeepassxc.service. - Helix:
config.toml(store-owned, pinstheme = "current") + static themes{apple,clrs,dank}.toml. Theme switching uses the pointer-theme pattern:hx-theme-syncrewrites the watcher-ownedthemes/current.toml(inherits = "ayu_light|ayu_evolve") and SIGUSR1s helix, which re-reads theme files from disk — helix's only drop-in slot (no config includes, no--themeflag in ≤25.07;defaultis a reserved unshadowable name, so a zero-theme-line config can't work). RETIRE this once Arch ships helix >25.07: main has native[theme] light/darkdriven by the terminal's mode-2031 reports, so config.toml just carries that table and the pointer file + helix leg ofhx-theme-syncgo away.
Desktop-only (hosts/arch-ws.nix), migrated 2026-09-28:
- Units
syncthing— HM mirrors the package unit so enable state is declarative (pacman still owns the binary; keep the ExecStart in sync with/usr/lib/systemd/user/syncthing.serviceon package bumps).voxtypemoved tohome.nix(shared, 2026-09-29 wayfinder adoption). hypr-bitwarden-popup+ its listener script (script moved out of yadm).comfyui-qwen-image,elephant,vllm-tcclaviger,vllm-paro-int5— adopted from loose host units; activation pending (the switch restarts the inference server; move the 4 host unit files + their default.target.wants symlinks aside before switching). The vllm units wrap run.sh → docker compose; model lifecycle lives in the container.- Deleted as dead: the whole
llama-server-*/llama-routerstack (binaries gone),af-portforward/af-vm-pf, andhermes-gateway— hermes was removed via its officialhermes uninstall --fullplus the actual runtime, ahermes-discorddocker container, image, and~/.hermes. tray.targetis NOT stale — the current HM generates it (shared target for tray-related service modules); leave it be.- Dropped unused packages incl.
hyprpolkitagent— DMS's built-in polkit agent (PolkitService.qml, on by default) replaces it. If auth prompts ever stop appearing, that's the first thing to check.
Deliberately NOT managed (apps write these at runtime — HM managing them caused a broken session once):
~/.config/hypr/dms/*— generated by DMS (dms setup/ Control Center), includingdms/binds-user.lua(inert since keybinds moved to this repo)~/.config/DankMaterialShell/*.json— GUI-managed settings~/.config/hypr/scripts/— yadm (arch-ws only), exceptbitwarden-hypr-listener.sh— HM-owned now (unit + script versioned together inhosts/arch-ws.nix; untracked from yadm 2026-09-28)~/.config/helix/themes/current.toml— pointer theme rewritten byhx-theme-syncat runtime (the drop-in slot; config.toml itself is managed)
The hypridle/hyprlock/hyprpaper/wayscriber stack is gone from both hosts — DMS owns idle, lock, wallpaper, and screenshots now.
DMS GUI state across hosts
~/.config/DankMaterialShell/* is deliberately host-specific (OLED vs
laptop panel: themes, bar widgets, power/lock timeouts) and GUI-written —
never store-managed. dms backup create/restore exists as an escape hatch
(files/dms/dms-backup.tar.gz is an arch-ws snapshot, kept for disaster
recovery only). Cross-host consistency is achieved in the lua layer instead:
hyprland.lua, workspaces.lua, and binds-user.lua are identical on all
hosts by construction (this repo); dms/binds.lua is byte-identical as of
2026-09-28 (desktop regenerated from the laptop's fresh copy) but can drift
again via per-host dms keybinds state — check it after dms bumps.
Rules
- Store-backed sources only. Never
mkOutOfStoreSymlinkinto this repo (sshd StrictModes + reload races — see the 2026-09-28 incident). - Always switch with
-b backup. - After any switch touching hypr:
hyprctl binds | wc -lshould match the host's baseline (arch-ws ~1271; wayfinder-ws ~1291). A drop to ~31 means the lua failed to load. - No secrets in this repo, ever.
- After
nix flake update: if activation warns "GPU drivers require an update", runsudo $(which non-nixos-gpu-setup)or nix GUI apps (DMS) lose EGL. Provided bytargets.genericLinux.gpu. - Re-vendor the dms template on every dms bump.
files/hypr/hyprland.luais our fork of DMS's embedded template (baseline: dmsa609b5f, verified 2026-09-28 — no unadopted upstream content).dms setupwould overwrite it and cannot (store symlink), so upstream template changes must be pulled in manually:HOME=$(mktemp -d) dms setup headless --compositor hyprland --terminal kitty # then diff the generated hyprland.lua against files/hypr/hyprland.lua # and adopt anything new on the template side. - PAM bridge (lock screen): nixpkgs linux-pam hardcodes its password
helper at
/run/wrappers/bin/unix_chkpwd(NixOS path) — see HM #7027. The bridge file is now HM-managed (files/pam/tmpfiles-nix-pam-chkpwd.conf, installed by theinstallPamStacksactivation). Without it the DMS lock screen CANNOT authenticate (PAM code 9) and will faillock-lock the account after 3 tries. On Arch the helper is/usr/sbin/unix_chkpwd(setuid); on other distros adjust the link target. - PAM stacks + nix module gap:
/etc/pam.d/{dms-lock,greetd,sudo}are HM-managed (files/pam/, installed by the same activation; pacman/AUR upgrades get healed on the next switch). Factor order everywhere: key → finger → password; single credential source~/.config/Yubico/u2f_keys(/etc/u2f_mappingsretired — it rotted into terminal escape codes and silently disabled U2F for login/sudo). Same gap as rule 7 on the module side: nix linux-pam's module dir has no pam_u2f/pam_fprintd, so dms-lock's factor lines must stay absolute paths (/usr/lib/security/…), else quickshell logs "adding faulty module" and the lock screen degrades to password-only. - If a stale wants-symlink to a pacman
dms.serviceexists when the HM unit arrives, HM refuses to clobber it — remove~/.config/systemd/user/graphical-session.target.wants/dms.servicemanually, re-switch.
Ownership map
| Path | Owner |
|---|---|
| hyprland binary | pacman |
| dms binary | pacman (AUR dms-shell-git; HM module disabled 2026-09-29 A/B — session unit mirrored in home.nix) |
| quickshell (session) | pacman (quickshell-git; also hard dep of greetd-dms-greeter on wayfinder-ws; arch-ws has no DMS greeter) |
| dgop, cava, matugen, NM, accountsservice, … | pacman |
~/.config/hypr/{hyprland,workspaces}.lua |
HM (this repo) |
~/.config/hypr/dms/, ~/.config/DankMaterialShell/, ~/.local/state/DankMaterialShell/ |
DMS runtime (nobody) |
~/.config/hypr/scripts/ (arch-ws only) |
yadm |
/etc/pam.d/{dms-lock,greetd,sudo} + /etc/tmpfiles.d/nix-pam-chkpwd.conf |
HM activation (this repo, files/pam/) |
| everything else | yadm (arch-ws) / unversioned (wayfinder-ws) |