I’m writing a nixos module (which will be imported in
configuration.nix) which needs to set some kernel modules to be loaded via
boot.initrd.kernelModules option. But I want my modules to be loaded before the user’s modules which are specified in his
configuration.nix. I know modules specified in this option load in the order they are specified, like in a configuration like this:
boot.initrd.kernelModules = [ "vfio_pci" # first to be loaded "vfio" "vfio_iommu_type1" "nvidia" # last ];
But I don’t know how will setting this option in my module and in
configuration.nix will interact with each other. Will they merge? If in which order?