nixconfigs/hosts/thinknix/hardware-configuration.nix
Trolli Schmittlauch ff88fe87c0 hardware-configuration: do not autoload kvm modules
kvm kernel modules clash with the VirtualBox one when accessing hardware
accelleration. Maybe the kvm module is even loaded automatically when
required, but even if that is not the case I am currently still using
VirtualBox more often than KVM-based virtualisation.
2025-11-23 23:36:31 +01:00

27 lines
477 B
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"rtsx_pci_sdmmc"
];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
nix.settings.max-jobs = lib.mkDefault 4;
# modesetting is always better than intel (legacy)
services.xserver.videoDrivers = [ "modesetting" ];
}