fix(power): #60 name-agnostic system-battery scan
All checks were successful
Check / eval (push) Successful in 2m53s

Replace BAT* globs with type=Battery + !scope=Device (same filter as
nomarchy-battery-notify) in charge-limit oneshot, menu gates, Waybar
power-profile self-gate, doctor, and install chassis detection. CMB0-
style names get charge-cap and laptop modules consistently.

V3 pending: confirm on non-BAT* hardware (HARDWARE-QUEUE). Close #60.

Verified: V1 (option-docs, hardware-db-modules, battery-charge-limit VM).
This commit is contained in:
Bernardo Magri
2026-07-10 08:32:24 +01:00
parent 09388196a9
commit c962d07841
9 changed files with 80 additions and 29 deletions

View File

@@ -17,6 +17,19 @@ Template:
---
## 2026-07-10 — #60 name-agnostic system-battery scan
- **Task:** NEXT #60 — align charge-limit / menu / waybar / doctor /
installer chassis with battery-notifys type=Battery + !scope=Device
filter (BAT* globs miss CMB0).
- **Did:** power.nix oneshot, rofi helpers (`has_system_battery` /
`has_charge_threshold`), waybar powerprofile gate, doctor loop,
hardware-db chassis, options.nix description. HARDWARE-QUEUE entry
for non-BAT* confirm. Closed #60.
- **Verified:** **V1**`checks.option-docs`, `hardware-db-modules`,
`battery-charge-limit` (VM) green; no remaining `BAT*` globs in code
paths. **V3 pending:** non-BAT* name on real hardware (queue entry).
- **Next suggestion:** #63 generated Waybar powermenu + logo.
## 2026-07-10 — #59 NVIDIA commented system.nix guidance
- **Task:** NEXT #59 — when `common-gpu-nvidia` is selected, emit
commented PRIME/power/open-module guidance in installer-generated