add hdr option

This commit is contained in:
Asaki Yuki 2026-04-11 01:32:03 +07:00
parent cd7830e494
commit ec5fe2b1cb

View file

@ -1,8 +1,12 @@
{ {
lib,
libs, libs,
pkgs, pkgs,
... ...
}: }:
let
ENABLE_HDR = false;
in
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@ -51,13 +55,14 @@
wm.niri.enable = false; wm.niri.enable = false;
wm.hyprland.enable = true; wm.hyprland.enable = true;
wm.hyprland.monitors = [ wm.hyprland.monitors = [
{ ({
output = "eDP-1"; output = "eDP-1";
mode = "1920x1200@60"; mode = "1920x1200@60";
position = "0x0"; position = "0x0";
scale = 1; scale = 1;
bitdepth = 10; bitdepth = 10;
} // lib.optionalAttrs ENABLE_HDR {
cm = "hdr"; cm = "hdr";
supports_wide_color = 1; supports_wide_color = 1;
supports_hdr = 1; supports_hdr = 1;
@ -73,7 +78,7 @@
max_avg_luminance = 250; max_avg_luminance = 250;
sdr_eotf = 2; sdr_eotf = 2;
} })
]; ];
bluetooth.enable = true; bluetooth.enable = true;