mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-10 04:59:40 +01:00
ba8294c0a1
These modules only included gpu configuration, so belong in that location.
12 lines
327 B
Nix
12 lines
327 B
Nix
{ config, lib, ... }:
|
|
{
|
|
imports = [ ../. ];
|
|
config = lib.mkMerge [
|
|
(lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.8") {
|
|
hardware.intelgpu.driver = "xe";
|
|
})
|
|
(lib.mkIf (config.hardware.intelgpu.driver == "i915") {
|
|
boot.kernelParams = [ "i915.enable_guc=3" ];
|
|
})
|
|
];
|
|
}
|