diff --git a/nix/configurations/vanadium/nixos/display.nix b/nix/configurations/vanadium/nixos/display.nix index 01003036..b309b82f 100644 --- a/nix/configurations/vanadium/nixos/display.nix +++ b/nix/configurations/vanadium/nixos/display.nix @@ -61,7 +61,11 @@ device, # obtain with `xrandr` brightness, # [0..1] }: + # Hack: + # xrandr would consider the display being connected before we can change its brightness + # For that reason, we can't base our delay on its output, sadly. singleton "10_xrandr_brightness" '' + sleep 10 xrandr --output ${device} --brightness ${toString brightness} '';