From ec5fe2b1cb8b7c9c993cfb11860259ecf2313020 Mon Sep 17 00:00:00 2001 From: Asaki Yuki Date: Sat, 11 Apr 2026 01:32:03 +0700 Subject: [PATCH] add hdr option --- devices/ideapad-slim-5/configuration.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devices/ideapad-slim-5/configuration.nix b/devices/ideapad-slim-5/configuration.nix index a60423b..8095316 100755 --- a/devices/ideapad-slim-5/configuration.nix +++ b/devices/ideapad-slim-5/configuration.nix @@ -1,8 +1,12 @@ { + lib, libs, pkgs, ... }: +let + ENABLE_HDR = false; +in { imports = [ ./hardware-configuration.nix @@ -51,13 +55,14 @@ wm.niri.enable = false; wm.hyprland.enable = true; wm.hyprland.monitors = [ - { + ({ output = "eDP-1"; mode = "1920x1200@60"; position = "0x0"; scale = 1; bitdepth = 10; + } // lib.optionalAttrs ENABLE_HDR { cm = "hdr"; supports_wide_color = 1; supports_hdr = 1; @@ -73,7 +78,7 @@ max_avg_luminance = 250; sdr_eotf = 2; - } + }) ]; bluetooth.enable = true;