add acer display OC EDID

This commit is contained in:
Andreas Schaafsma 2024-11-10 22:44:40 +01:00
parent b03e28e889
commit 5aded84ef9
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
{
boot.kernelParams = [ "drm.edid_firmware=DP-3:edid/edid.bin" ];
hardware.firmware = [
(
pkgs.runCommand "edid.bin" { } ''
mkdir -p $out/lib/firmware/edid
cp ${./firmware/KG271-edid.bin} $out/lib/firmware/edid/edid.bin
''
)];
}

View File

@ -5,7 +5,9 @@
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
[
(modulesPath + "/installer/scan/not-detected.nix")
./acer-monitor-edid.nix
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];