diff options
Diffstat (limited to 'systems/leg')
| -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; } |
