reorganize hardware
This commit is contained in:
parent
0d9381864c
commit
962e0095ef
8 changed files with 76 additions and 54 deletions
|
|
@ -19,9 +19,6 @@
|
|||
always_full_speed = false;
|
||||
};
|
||||
|
||||
# better performance than the actual intel driver
|
||||
services.xserver.videoDrivers = [ "modesetting" ];
|
||||
|
||||
# replace basic t2 kernel with cachyos kernel
|
||||
# same patches and i trust it to be more up to date (one time the "latest" was EOL for t2,,,)
|
||||
# also interesting how this supports l4 but my big computer doesn't...
|
||||
|
|
@ -30,18 +27,10 @@
|
|||
# fix wifi firmware
|
||||
hardware.apple-t2.firmware.enable = true;
|
||||
|
||||
environment.variables = {
|
||||
LIBVA_DRIVER_NAME= "iHD";
|
||||
VDPAU_DRIVER = "va_gl";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ intel-gpu-tools ];
|
||||
|
||||
boot.kernelParams = [
|
||||
# enable the i915 sandybridge framebuffer compression (475mw savings)
|
||||
"i915.enable_fbc=1"
|
||||
"i915.enable_gvt=1"
|
||||
];
|
||||
hardware.intelgpu.driver = "i915";
|
||||
# support gen8-11 (i915) rather than gen12+ (xe)
|
||||
hardware.intelgpu.computeRuntime = "legacy";
|
||||
hardware.intelgpu.mediaRuntime = "intel-media-sdk";
|
||||
|
||||
# fix sleep/suspend
|
||||
# ty https://github.com/3ulalia/flake/blob/aaddbef19979c6d952f7a763cd9e6225d6330a02/hosts/catalina/default.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue