nix-config/nixos/hosts/capibara/hardware-configuration.nix

30 lines
651 B
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd = {
kernelModules = [ ];
availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"sd_mod"
"sr_mod"
"sdhci_pci"
];
};
kernelModules = [ "kvm-intel" ];
kernelParams =
[ "intel_pstate=passive" "i915.enable_fbc=1" "i915.enable_psr=2" ];
extraModulePackages = [ ];
};
hardware = {
cpu.intel.updateMicrocode = true;
opengl.extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ];
};
}