From 503a264e14bd126dbd270c171afd0cde9012da8e Mon Sep 17 00:00:00 2001 From: noe Date: Sun, 17 Dec 2023 16:04:38 -0500 Subject: [PATCH] aerial: displays --- nixos/hosts/aerial/default.nix | 4 +++ nixos/hosts/aerial/xorg.conf | 63 ++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 nixos/hosts/aerial/xorg.conf diff --git a/nixos/hosts/aerial/default.nix b/nixos/hosts/aerial/default.nix index d3572bb..ff1b38f 100644 --- a/nixos/hosts/aerial/default.nix +++ b/nixos/hosts/aerial/default.nix @@ -10,6 +10,10 @@ ]; home-manager.users.noe = import ../../../home-manager/noe/hosts/aerial.nix; + + environment.etc."X11/xorg.conf" = { + source = ./xorg.conf; + }; networking.hostName = "aerial"; system.stateVersion = "24.05"; diff --git a/nixos/hosts/aerial/xorg.conf b/nixos/hosts/aerial/xorg.conf new file mode 100644 index 0000000..f996ce8 --- /dev/null +++ b/nixos/hosts/aerial/xorg.conf @@ -0,0 +1,63 @@ +# nvidia-settings: X configuration file generated by nvidia-settings +# nvidia-settings: version 545.29.06 + +Section "ServerLayout" + Identifier "Layout0" + Screen 0 "Screen0" 0 0 + InputDevice "Keyboard0" "CoreKeyboard" + InputDevice "Mouse0" "CorePointer" + Option "Xinerama" "0" +EndSection + +Section "Files" +EndSection + +Section "InputDevice" + # generated from default + Identifier "Mouse0" + Driver "mouse" + Option "Protocol" "auto" + Option "Device" "/dev/input/mice" + Option "Emulate3Buttons" "no" + Option "ZAxisMapping" "4 5" +EndSection + +Section "InputDevice" + # generated from default + Identifier "Keyboard0" + Driver "kbd" +EndSection + +Section "Monitor" + # HorizSync source: edid, VertRefresh source: edid + Identifier "Monitor0" + VendorName "Unknown" + ModelName "LG Electronics LG ULTRAGEAR" + HorizSync 250.0 - 250.0 + VertRefresh 48.0 - 160.0 + Option "DPMS" +EndSection + +Section "Device" + Identifier "Device0" + Driver "nvidia" + VendorName "NVIDIA Corporation" + BoardName "NVIDIA GeForce RTX 3090" +EndSection + +Section "Screen" + Identifier "Screen0" + Device "Device0" + Monitor "Monitor0" + DefaultDepth 24 + Option "Stereo" "0" + Option "nvidiaXineramaInfoOrder" "DFP-0" + Option "metamodes" "3440x1440_160 +0+0" + Option "SLI" "Off" + Option "MultiGPU" "Off" + Option "BaseMosaic" "off" + SubSection "Display" + Depth 24 + EndSubSection +EndSection +