From 0c19836c8c125c39c7c1e3a3b29088a4b1c8edf1 Mon Sep 17 00:00:00 2001 From: Ben Mezger Date: Sun, 19 Jan 2025 13:23:58 +0100 Subject: [PATCH] nix: add X head config --- modules/linux/x.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/linux/x.nix b/modules/linux/x.nix index 34c9a228..75c1f546 100644 --- a/modules/linux/x.nix +++ b/modules/linux/x.nix @@ -30,6 +30,20 @@ in i3lock ]; }; + + displayManager = { + setupCommands = '' + ${pkgs.xorg.xrandr}/bin/xrandr \ + --output HDMI-0 --mode 3840x2160 --pos 2160x0 \ + --output HDMI-1 --mode 3840x2160 --pos 0x480 --rotate right \ + --output DP-2 --primary --mode 3840x2160 --pos 2160x2160 \ + --output DP-0 --off \ + --output DP-1 --off \ + --output DP-3 --off \ + --output DP-4 --off \ + --output DP-5 --off + ''; + }; }; services.displayManager.defaultSession = "none+i3";