Difference in kernel modules from nixos-generate-config
and facter
#65
Labels
bug
Something isn't working
nixos-generate-config
and facter
#65
Describe the bug
Hi! Thanks for this cool new way of defining hardware config. I am not sure, but I think I ran into a bug.
I am not using
nixos-hardware
on my machine (as my laptop not defined in there), and using facter I observed changes in my available kernel modules.In short, the following kernel modules did not appear when using facter instead of the generated
hardware-configuration.nix
:Hardware config
nix hardware scan config:
generates the following kernel modules:
Using facter
With the following relevant config:
I observed the following diff:
If I am correct, the facter hardware scan does not include the following 'extra'
nixosConfigurations.<< host >>.config.boot.initrd.availableKernelModules
, which appear when usinghardware-configuration.nix
:Expected behavior
I expect the kernel modules to remain the same, as with
hardware-configuration.nix
. It might have to do with kernel modules which are generated on initial install via a USB stick, as when I re-generate the config these kernel modules seem to match the ones generated byfacter
, the missing kernel modules might indeed then be superfluous. I wonder whether this is expected behaviour. Regenerating it generates the following relevant config:System information
HP HP ZBook Firefly 14 inch G10 Mobile Workstation PC
Linux ... 6.6.56 nix-community/nixos-facter#1-NixOS SMP PREEMPT_DYNAMIC Thu Oct 10 10:50:06 UTC 2024 x86_64 GNU/Linux
And I am running NixOS unstable. I can share the full report if you want, but I am not sure whether that is relevant.
The text was updated successfully, but these errors were encountered: