Properly configure Intel Graphics on Lilim.

This commit is contained in:
Kevin Baensch 2020-03-11 02:33:31 +01:00
parent 85600ad746
commit b25c766d9d
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -15,14 +15,17 @@ in {
loader.efi.canTouchEfiVariables = true;
tmpOnTmpfs = true;
cleanTmpDir = true;
kernelPackages = pkgs.linuxPackages_latest;
kernelPackages = pkgs.linuxPackages_latest;
initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ];
kernelModules = [ "kvm-intel" "uinput" ];
kernelModules = [ "i915" "kvm-intel" "uinput" ];
kernelParams = [ "intel_iommu=on" ];
extraModprobeConfig = ''
options i915 enable_fbc=1 enable_guc=3
'';
kernel.sysctl = {
"kernel.nmi_watchdog" = 0;
"fs.inotify.max_user_watches" = 524288;
"fs.inotify.max_user_watches" = 524288;
"vm.dirty_writeback_centisecs" = 1500;
};
};
@ -44,9 +47,9 @@ in {
ksm.enable = true;
opengl = {
driSupport = true;
extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl libva vaapiIntel vaapiVdpau intel-media-driver ];
extraPackages = with pkgs; [ intel-media-driver libvdpau-va-gl libva (vaapiIntel.override {enableHybridCodec = true;}) vaapiVdpau intel-media-driver ];
driSupport32Bit = true;
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl libva vaapiIntel vaapiVdpau ];
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl libva (vaapiIntel.override {enableHybridCodec = true;}) vaapiVdpau ];
};
pulseaudio = {