From da2fdb598f7980279a255b62994b95abb843b1f4 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 4 Dec 2026 01:30:11 +0000 Subject: x11: X server and sessions From the dirt. Boolean options are written as on/off. Sessions run for any user: each user's orchestrator only looks at X sockets owned by that user. --- systems/leg/config.nix | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'systems') diff --git a/systems/leg/config.nix b/systems/leg/config.nix index 86709b0d..066aafe9 100644 --- a/systems/leg/config.nix +++ b/systems/leg/config.nix @@ -8,6 +8,7 @@ ../../configs/earlyoom.nix ../../configs/networkd.nix + ../../configs/x11 { ### from https://github.com/gkovacs/udev-key-remapping @@ -81,8 +82,6 @@ hardware.sensor.iio.enable = true; - hardware.graphics.enable = true; - nix.settings.cores = 4; users.users.root.packages = [ @@ -127,5 +126,27 @@ # modesetting doesn't show anything beyond the cursor. services.xserver.modules = [ pkgs.xf86videoamdgpu ]; + # The built-in screen is mounted in portrait orientation. + hrm.xserver.configs = { + "80-monitor.conf" = { + Section.Monitor.eDP = { + DisplaySize = [ 120 190 ]; + Option.Rotate = "left"; + Option.UseEdidDpi = "False"; + Option.DPI = "337x342"; + }; + }; + "99-rotate.conf" = { + Section.InputClass."libinput touchscreen catchall" = { + MatchProduct = "NVTK0603:00 0603:F001"; + MatchIsTouchscreen = true; + Option.TransformationMatrix = "0 -1 1 1 0 0 0 0 1"; + }; + Section.Monitor."" = { + Option.Rotate = "left"; + }; + }; + }; + services.illum.enable = true; } -- cgit v1.3.1