Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling facter results in lots of entries being added to boot.initrd.availableKernelModules #50

Open
britter opened this issue Oct 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@britter
Copy link
Contributor

britter commented Oct 27, 2024

Describe the bug

After enabling nixos-facter the boot.initrd.availableKernelModules and boot.initrd.kernelModules have more entries then before.

For my configuration my hardware-configuration.nix contained:

  boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "usb_storage" "sd_mod"];
  boot.initrd.kernelModules = [];
  boot.kernelModules = ["kvm-amd"];
  boot.extraModulePackages = [];

After enabling nixos-facter these values evaluate like this:

nix-repl> :p outputs.nixosConfigurations.pulse-14.config.boot.initrd.availableKernelModules
[ "xhci_pci" "nvme" "ext2" "ext4" "crc32c" "xxhash_generic" "blake2b_generic" "sha256_generic" "dm_mod" "dm_crypt" "cryptd" "input_leds" "aes" "aes_generic" "blowfish" "twofish" "serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512" "af_alg" "algif_skcipher" "ecb" "ahci" "sata_nv" "sata_via" "sata_sis" "sata_uli" "ata_piix" "pata_marvell" "nvme" "sd_mod" "sr_mod" "mmc_block" "uhci_hcd" "ehci_hcd" "ehci_pci" "ohci_hcd" "ohci_pci" "xhci_hcd" "xhci_pci" "usbhid" "hid_generic" "hid_lenovo" "hid_apple" "hid_roccat" "hid_logitech_hidpp" "hid_logitech_dj" "hid_microsoft" "hid_cherry" "hid_corsair" "pcips2" "atkbd" "i8042" "rtc_cmos" ]

nix-repl> :p outputs.nixosConfigurations.pulse-14.config.boot.initrd.kernelModules
[ "amdgpu" "btrfs" "dm_mod" ]

nix-repl> :p outputs.nixosConfigurations.pulse-14.config.boot.kernelModules
[ "kvm-amd" "bridge" "macvlan" "tap" "tun" "bridge" "veth" "br_netfilter" "xt_nat" "loop" "atkbd" "ctr" "uinput" ]

nix-repl> :p outputs.nixosConfigurations.pulse-14.config.boot.extraModulePackages
[ ]

To Reproduce

Steps to reproduce the behavior:

  1. Checkout commit britter/nix-configuration@fb53f90
  2. Enter a repl and instect values

Expected behavior

Not exactly sure. I guess a much smaller number of modules being loaded.

System information

See the flake.lock file in the repository linked above.

Additional context

@britter britter added the bug Something isn't working label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant