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