Skip to content

Commit

Permalink
fix eval with 24.05
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Nov 6, 2024
1 parent 2e78b1a commit f372fa6
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions lenovo/legion/16ach6h/edid/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ pkgs, ... }:
{
pkgs,
lib,
options,
...
}:

let
# This file was obtained from the display while "DDG" mode was enabled.
Expand All @@ -8,18 +13,19 @@ let
'';
in
{
hardware.display = {
edid.packages = [ chip_edid ];
config = lib.optionalAttrs (options ? hardware.display) {
hardware.display = {
edid.packages = [ chip_edid ];

outputs = {
# For some reason, the internal display is sometimes eDP-1, and sometimes it's eDP-2
"eDP-1".edid = "16ach6h.bin";
"eDP-2".edid = "16ach6h.bin";
outputs = {
# For some reason, the internal display is sometimes eDP-1, and sometimes it's eDP-2
"eDP-1".edid = "16ach6h.bin";
"eDP-2".edid = "16ach6h.bin";
};
};
};


# This fails at the moment, https://github.com/NixOS/nixos-hardware/issues/795
# Extra refresh rates seem to work regardless
# boot.initrd.extraFiles."lib/firmware/edid/16ach6h.bin".source = pkgs.runCommandLocal "chip_edid" { } "cp ${./16ach6h.bin} $out";
# This fails at the moment, https://github.com/NixOS/nixos-hardware/issues/795
# Extra refresh rates seem to work regardless
# boot.initrd.extraFiles."lib/firmware/edid/16ach6h.bin".source = pkgs.runCommandLocal "chip_edid" { } "cp ${./16ach6h.bin} $out";
};
}

0 comments on commit f372fa6

Please sign in to comment.