From b6d9eed8058789c380788b0ec8df2d782e50d3f7 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 Aug 2013 11:15:02 +0200 Subject: [PATCH] Manual: Document X11 configuration --- doc/manual/configuration.xml | 57 ++++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/doc/manual/configuration.xml b/doc/manual/configuration.xml index 6a217243c004..3ff8ca8f2408 100644 --- a/doc/manual/configuration.xml +++ b/doc/manual/configuration.xml @@ -392,6 +392,60 @@ groups can be managed using groupadd, + + +
X11 + +The X11 windowing system provides the basis of NixOS’ graphical +user interface. It can be enabled as follows: + +services.xserver.enable = true; + +The X server will automatically detect and use the appropriate video +driver from a set of X.org drivers (such as vesa +and intel). You can also specify a driver +manually. For instance, to enable the proprietary NVIDIA driver, you need + +services.xserver.videoDrivers = [ "nvidia" ]; + +(You may need to reboot after enabling this driver to prevent a clash +with other kernel modules.) + +You also need to enable at least one desktop or window manager. +Otherwise, you can only log into a plain undecorated +xterm window. Thus you should pick one or more of +the following lines: + +services.xserver.desktopManager.kde4.enable = true; +services.xserver.desktopManager.xfce.enable = true; +services.xserver.windowManager.xmonad.enable = true; +services.xserver.windowManager.twm.enable = true; +services.xserver.windowManager.icewm.enable = true; + + + +NixOS’s default display manager (the +program that provides a graphical login prompt and manages the X +server) is SLiM. You can select KDE’s kdm instead: + +services.xserver.displayManager.kdm.enable = true; + + + +The X server is started automatically at boot time. If you +don’t want this to happen, you can set: + +services.xserver.autorun = false; + +The X server can then be started manually: + +$ systemctl start display-manager.service + + + +
+ +
Networking @@ -573,8 +627,7 @@ networking.localCommands =
- +