NixOS Configuration
Taking the facter.json
file generated in the previous step, we can construct a
NixOS configuration:
The NixOS Facter module will attempt to do the following:
- Configure
nixpkgs.hostPlatform
based on the detected architecture. - Enable a variety of kernel modules and NixOS options related to VM and bare-metal environments based on the detected virtualisation.
- Enable CPU microcode updates based on the detected CPU(s).
- Ensure a variety of kernel modules are made available at boot time based on the detected (usb|firewire|storage) controllers and disks.
- Enable a variety of kernel modules based on the detected Broadcom and Intel WiFi devices.
Roadmap
We continue to add to and improve nixos-facter-modules. Our eventual goal is to replace much if not all of the functionality currently provided by nixos-hardware and nixos-generate-config.