36 lines
889 B
Nix
36 lines
889 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
modulesPath,
|
||
|
...
|
||
|
}: {
|
||
|
imports = [
|
||
|
# (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
|
||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||
|
];
|
||
|
|
||
|
boot = {
|
||
|
initrd = {
|
||
|
availableKernelModules = ["xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
|
||
|
kernelModules = [];
|
||
|
};
|
||
|
kernelModules = ["kvm-intel"];
|
||
|
blacklistedKernelModules = ["nouveau" "nvidia" "nvidia_drm" "nvidia_modeset"];
|
||
|
|
||
|
kernelParams = ["mem_sleep_default=deep"];
|
||
|
extraModulePackages = [];
|
||
|
extraModprobeConfig = ''
|
||
|
blacklist nouveau
|
||
|
options nouveau modeset=0
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
# Earlier font setup
|
||
|
console.earlySetup = true;
|
||
|
|
||
|
# Enable firmware updates via `fwupdmgr`.
|
||
|
services.fwupd.enable = lib.mkDefault true;
|
||
|
|
||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
}
|