mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-01 08:39:41 +01:00
common/gpu/intel: update modules to use new options
This commit is contained in:
parent
184091915d
commit
86a33c3e32
10 changed files with 51 additions and 0 deletions
10
common/gpu/intel/bay-trail/default.nix
Normal file
10
common/gpu/intel/bay-trail/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
hardware.intelgpu = {
|
||||
vaapiDriver = "intel-vaapi-driver";
|
||||
enableHybridCodec = true;
|
||||
};
|
||||
}
|
10
common/gpu/intel/braswell/default.nix
Normal file
10
common/gpu/intel/braswell/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
hardware.intelgpu = {
|
||||
vaapiDriver = "intel-vaapi-driver";
|
||||
enableHybridCodec = true;
|
||||
};
|
||||
}
|
10
common/gpu/intel/broadwell/default.nix
Normal file
10
common/gpu/intel/broadwell/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
hardware.intelgpu = {
|
||||
vaapiDriver = "intel-vaapi-driver";
|
||||
enableHybridCodec = true;
|
||||
};
|
||||
}
|
|
@ -2,4 +2,6 @@
|
|||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [ "i915.enable_guc=2" ];
|
||||
|
||||
hardware.intelgpu.vaapiDriver = "intel-media-driver";
|
||||
}
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [ "i915.enable_guc=2" ];
|
||||
|
||||
hardware.intelgpu.vaapiDriver = "intel-media-driver";
|
||||
}
|
||||
|
|
10
common/gpu/intel/haswell/default.nix
Normal file
10
common/gpu/intel/haswell/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../. ];
|
||||
|
||||
hardware.intelgpu = {
|
||||
vaapiDriver = "intel-vaapi-driver";
|
||||
enableHybridCodec = true;
|
||||
};
|
||||
}
|
|
@ -2,4 +2,6 @@
|
|||
imports = [ ../. ];
|
||||
|
||||
boot.kernelParams = [ "i915.enable_guc=2" ];
|
||||
|
||||
hardware.intelgpu.vaapiDriver = "intel-media-driver";
|
||||
}
|
||||
|
|
|
@ -5,4 +5,6 @@
|
|||
"i915.enable_fbc=1"
|
||||
"i915.enable_psr=2"
|
||||
];
|
||||
|
||||
hardware.intelgpu.vaapiDriver = "intel-media-driver";
|
||||
}
|
||||
|
|
|
@ -4,4 +4,6 @@
|
|||
# Enables RC6, RC6p and RC6pp.
|
||||
# Last two are only available on Sandy Bridge CPUs (circa 2011).
|
||||
boot.kernelParams = [ "i915.enable_rc6=7" ];
|
||||
|
||||
hardware.intelgpu.vaapiDriver = "intel-vaapi-driver";
|
||||
}
|
||||
|
|
|
@ -8,5 +8,6 @@
|
|||
(lib.mkIf (config.hardware.intelgpu.driver == "i915") {
|
||||
boot.kernelParams = [ "i915.enable_guc=3" ];
|
||||
})
|
||||
{ hardware.intelgpu.vaapiDriver = "intel-media-driver"; }
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue