Commit Graph

3 Commits

Author SHA1 Message Date
andre4ik3
5dd1dff815 nixos/facter: add enable option
The option defaults to `report != { }` instead of `reportPath != null`,
because since the report may be set externally using `report`, guarding
for `reportPath != null` breaks setups that set it externally, since
none of the modules take effect any longer.
2026-03-11 09:07:52 +00:00
Jörg Thalheim
3e758c612d nixos/facter: add reportPath guard to all modules
Add lib.mkIf condition checking if config.hardware.facter.reportPath != null
to all facter modules. This shortcuts the module effects when no facter
report is available, preventing unnecessary evaluation and potential errors
when the report is not provided.
2025-11-05 22:57:03 +01:00
Jörg Thalheim
79d683f4ad nixos/facter: add graphics hardware detection
This adds automatic graphics card configuration:

Builds on PR #456698 (virtualization & firmware).
Part of incremental upstreaming from nixos-facter-modules.
2025-11-04 19:27:19 +01:00