Skip to content

Commit

Permalink
nix: add X head config
Browse files Browse the repository at this point in the history
  • Loading branch information
benmezger committed Jan 19, 2025
1 parent 7d666c5 commit 0c19836
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/linux/x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 0c19836

Please sign in to comment.