feat(install): #59 NVIDIA commented system.nix guidance
Some checks failed
Check / eval (push) Has been cancelled

When hardwareProfile includes common-gpu-nvidia, emit a comment-only
plain NixOS block (PRIME / powerManagement / open-module) in the
installer region of system.nix — same pattern as ROCm/NPU opt-ins.
HARDWARE.md §6 product direction marked shipped. Close #59.

Verified: V0 (patch-template smoke + negative + bash -n).
This commit is contained in:
Bernardo Magri
2026-07-10 08:30:51 +01:00
parent f09042adbe
commit 09388196a9
5 changed files with 37 additions and 14 deletions

View File

@@ -95,15 +95,6 @@ the WiFi card.” Does **not** rewrite the flake unless a later `--apply`
is explicitly designed. Cost: extract script + package + man/README
pointer; V0V1.
### 59. Installer: NVIDIA commented system.nix guidance
Detection already adds `common-gpu-nvidia`; there is no
`nomarchy.hardware.nvidia.*` and hybrid/PRIME is wiki territory. When
NVIDIA is detected, emit a **commented** block in generated `system.nix`
(same style as ROCm/NPU) pointing at PRIME / powerManagement /
open-module and docs/HARDWARE.md §6 — not a full second stack. Cost:
install script strings; V0 + doc. Prefer this over first-class NVIDIA
options (`[big]` stays PROPOSED).
### 60. Battery / powerprofile: name-agnostic battery scan
`power.nix` oneshot and menu/waybar globs use
`/sys/class/power_supply/BAT*`. `nomarchy-battery-notify` correctly

View File

@@ -17,6 +17,18 @@ Template:
---
## 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
system.nix (ROCm/NPU pattern).
- **Did:** `has_nvidia` from HW_PROFILES → patch JSON; `build_installer_region`
emits comment-only plain NixOS block + HARDWARE.md §6 pointer. Docs §6
product direction marked shipped. Closed #59.
- **Verified:** **V0** — patch-template smoke with nvidia true (region
contains hardware.nvidia.* comments + profile in flake); negative
(nvidia false) has neither; `bash -n` install script.
- **Next suggestion:** #60 BAT*-agnostic battery scan.
## 2026-07-10 — #62 whole-swap CSS self-containment CI gate
- **Task:** NEXT #62 — cheap gate that waybar.css defines every @color it
references (would have caught neon-glass) + preview/backgrounds present.