mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-15 23:49:41 +01:00
15 lines
499 B
Nix
15 lines
499 B
Nix
|
{ config, pkgs, lib, ...}:
|
||
|
|
||
|
let
|
||
|
# This file was obtained from the display while "DDG" mode was enabled.
|
||
|
chip_edid = pkgs.runCommandNoCC "chip_edid" { } ''
|
||
|
mkdir -p $out/lib/firmware/edid
|
||
|
cp ${./16ach6h.bin} $out/lib/firmware/edid/16ach6h.bin
|
||
|
'';
|
||
|
in
|
||
|
{
|
||
|
hardware.firmware = [ chip_edid ];
|
||
|
|
||
|
boot.kernelParams = [ "drm.edid_firmware=edid/16ach6h.bin" ];
|
||
|
boot.initrd.extraFiles."lib/firmware/edid/16ach6h.bin".source = pkgs.runCommandLocal "chip_edid" { } "cp ${./16ach6h.bin} $out";
|
||
|
}
|