aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-05-23 20:50:01 +0100
committerFrankie B <git@diskfloppy.me>2023-05-23 20:50:01 +0100
commit0f7305a86fd84f28fd6beed33bdc2265db6ec8bc (patch)
tree7e210bf91a63a756267d2c42bb427ad434532ed5
parentef7a25eddabffa2c5008199f78d2f7d7bf427339 (diff)
Add second display to nixbox config
-rw-r--r--hosts/nixbox/configuration.nix7
1 files changed, 6 insertions, 1 deletions
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