feat: misc hardware stuff

feat/kile-v2
Ricard Illa 2022-02-25 18:19:57 +01:00
parent 306e53d110
commit 7b2d05448b
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
1 changed files with 23 additions and 8 deletions

View File

@ -4,14 +4,29 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
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 = [ ];
};
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware = {
cpu.intel.updateMicrocode = true;
opengl.extraPackages = with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau ];
};
}