From 86b70461a3691a5b4527567a279f3a5ec70dfc81 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 24 Sep 2024 12:10:13 -0700 Subject: [PATCH] thinkpads: fix t480 monitor order --- hosts/thinkpads/hardware-configuration.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/thinkpads/hardware-configuration.nix b/hosts/thinkpads/hardware-configuration.nix index 0b945f5..cd0b5ef 100644 --- a/hosts/thinkpads/hardware-configuration.nix +++ b/hosts/thinkpads/hardware-configuration.nix @@ -36,4 +36,22 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + services.xserver.xrandrHeads = [ + { + output = "HDMI-2"; + monitorConfig = '' + Option "LeftOf" "eDP-1" + Option "PreferredMode" "1920x1200" + ''; + } + { + output = "eDP-1"; + monitorConfig = '' + Option "RightOf" "HDMI-2" + Option "PreferredMode" "1920x1200" + ''; + primary = true; + } + ]; }