feat(hw): #58 nomarchy-detect-hw post-install re-probe CLI
All checks were successful
Check / eval (push) Successful in 2m52s

Package the installer’s pure hardware-db probe as nomarchy-detect-hw:
prints suggested hardwareProfile and system.nix snippets (or --raw
protocol lines). Does not rewrite the flake. On PATH via the distro
module; docs/HARDWARE.md §8 updated. Close #58.

Verified: V1 (build + run on AMD laptop with fingerprint/NPU/IR cam).
This commit is contained in:
Bernardo Magri
2026-07-10 08:41:18 +01:00
parent 35699f170f
commit 2ef0a8b710
7 changed files with 199 additions and 17 deletions

View File

@@ -296,15 +296,15 @@ exist in a named nixos-hardware module.
See [MIGRATION.md](MIGRATION.md): reuse `hardware-configuration.nix`, set
`hardwareProfile`, uncomment `nomarchy.hardware` / power in `system.nix`.
There is **no** post-install re-probe helper yet (queued as
`nomarchy-detect-hw`).
Post-install re-probe (**shipped #58**):
### Re-detect sketch (future)
```sh
nomarchy-detect-hw # human report + suggested snippets
nomarchy-detect-hw --raw # MODULE / NOMARCHY / DETAIL protocol lines
```
The installers `nomarchy_detect_hw` is already a pure probe (stdout
lines only). Exposing it as a package on PATH that prints suggested
`hardwareProfile` + `system.nix` snippets would close the template gap
without reinstalling.
Prints suggested `hardwareProfile` and `system.nix` lines; **does not**
rewrite the flake. Paste after review, then `sudo nixos-rebuild switch`.
## 9. Adding your model to the distro