common/cpu/intel: add vaapi/vdpau drivers
I've tested this to work on MacBookAir4,1 and I'm going to deploy it to MacBookAir6,2 today and Lenovo ThinkPad X230 in a week from now. Also, cleaned up Lenovo ThinkPad X230 profile.
This commit is contained in:
parent
ed3ba5cc2d
commit
b1304963c8
|
@ -1,4 +1,12 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
||||||
services.xserver.videoDrivers = [ "intel" ];
|
services.xserver.videoDrivers = [ "intel" ];
|
||||||
|
|
||||||
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
|
vaapiIntel
|
||||||
|
vaapiVdpau
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,24 +1,18 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib; {
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
../.
|
||||||
../../../common/cpu/intel
|
../../../common/cpu/intel
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
|
acpi_call
|
||||||
|
];
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"acpi_call"
|
"acpi_call"
|
||||||
"tpm-rng"
|
"tpm-rng"
|
||||||
];
|
];
|
||||||
extraModulePackages = with config.boot.kernelPackages; [
|
|
||||||
acpi_call
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.opengl.extraPackages = with pkgs; [
|
|
||||||
vaapiIntel
|
|
||||||
vaapiVdpau
|
|
||||||
libvdpau-va-gl
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue