blob: 54cb1e694d953efc2215a9a5ceeb18ba81347a26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{ pkgs, ... }:
{
# systemd-boot on UEFI
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# EDID firmware (monitor identity) is exposed to the kernel as firmware so
# the display can be driven at its native resolution; mi_edid.bin lives at
# the repo root next to hardware-configuration.nix.
# NOTE: the matching --kernel-params (drm.edid_firmware / video=) are kept
# commented out because they hard-pin a specific DP output name.
hardware.firmware = [
(pkgs.runCommand "custom-edid" {} ''
mkdir -p $out/lib/firmware/edid
cp ${../../../mi_edid.bin} $out/lib/firmware/edid/mi_edid.bin
'')
];
}
|