diff options
| author | tv <tv@krebsco.de> | 2026-12-04 01:30:11 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-04 02:13:09 +0000 |
| commit | da2fdb598f7980279a255b62994b95abb843b1f4 (patch) | |
| tree | 0a7e1b94ada5cba282bd0cbe31854504b960c43a /systems | |
| parent | 9e10bd98d356db4b6ac3ea11cc9bcdb9aca5c2c9 (diff) | |
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.
Diffstat (limited to 'systems')
| -rw-r--r-- | systems/leg/config.nix | 25 |
1 files changed, 23 insertions, 2 deletions
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."<default monitor>" = { + Option.Rotate = "left"; + }; + }; + }; + services.illum.enable = true; } |
