From 0f7305a86fd84f28fd6beed33bdc2265db6ec8bc Mon Sep 17 00:00:00 2001 From: Frankie B Date: Tue, 23 May 2023 20:50:01 +0100 Subject: Add second display to nixbox config --- hosts/nixbox/configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'hosts/nixbox/configuration.nix') diff --git a/hosts/nixbox/configuration.nix b/hosts/nixbox/configuration.nix index 0ab39e1..416fd0a 100644 --- a/hosts/nixbox/configuration.nix +++ b/hosts/nixbox/configuration.nix @@ -47,8 +47,13 @@ # Enable the X11 windowing system. services.xserver.enable = true; + # Enable SDDM and set second display resolution/position + services.xserver.displayManager = { + sddm.enable = true; + setupCommands = "xrandr --output HDMI-0 --mode 1280x1024 --output HDMI-0 --right-of DP-0"; + }; + # Enable the KDE Plasma Desktop Environment. - services.xserver.displayManager.sddm.enable = true; services.xserver.desktopManager.plasma5.enable = true; # Configure keymap in X11 -- cgit v1.2.3-54-g00ecf