Xorg: Difference between revisions

Add comments, add Qt5-related variable, add systemd user support
Malix (talk | contribs)
m See also: feat: reference link to wayland
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[https://en.wikipedia.org/wiki/X.Org_Server Xorg] is the implementation of the [https://en.wikipedia.org/wiki/X_Window_System X Window System]. It acts as the bridge between your system's hardware and the graphical user environment enabling a variety of [[:Category:Desktop environment|desktop environments]] and [[:Category:Window managers|window managers]].
= Enabling =
On NixOS, users can enable and configure Xorg through the {{nixos:option|services.xserver}} module in their system configuration.
See {{NixOS Manual|name=NixOS Manual: Chapter - X Window Syestem|anchor=#sec-x11}} for information on using X11 with NixOS.
= Tips and tricks =
== HiDPI ==
== HiDPI ==


Line 28: Line 38:
     "QT_AUTO_SCREEN_SCALE_FACTOR"
     "QT_AUTO_SCREEN_SCALE_FACTOR"
   ];
   ];
</syntaxhighlight>
To enable HiDPI scaling for Qt 6 applications, add the following to <code>.Xresources</code>:
<syntaxhighlight>
Xft.dpi: 180
</syntaxhighlight>
</syntaxhighlight>


== Disabling touchpad and mouse accelerations ==
== Disabling touchpad and mouse accelerations ==
To disable touchpad and mouse accelerations just add the following lines to your <code>configuration.nix</code>
To disable touchpad and mouse accelerations just add the following lines to your <code>configuration.nix</code>


Line 61: Line 78:


== Exclude packages ==
== Exclude packages ==
Some packages like xterm are included when enabling Xorg. To exclude packages, edit the <code>configuration.nix</code> as the example, but be sure to have another terminal enabled in your build before doing this.
Some packages like xterm are included when enabling Xorg. To exclude packages, edit the <code>configuration.nix</code> as the example, but be sure to have another terminal enabled in your build before doing this.


Line 69: Line 87:
</syntaxhighlight>
</syntaxhighlight>


== See also ==
= See also =


* [[Wayland]]
* [[Nvidia]]
* [[Nvidia]]
* [[AMD GPU]]
* [[AMD GPU]]
* [[Intel Graphics]]
* [[Intel Graphics]]
* [[:Category:Desktop environment]]
* [[:Category:Window managers]]


[[Category:Video]]
[[Category:Video]]