From e4d949ec8801af8662c206d08d95ff41ba640d08 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 9 Jan 2013 22:19:58 +0100 Subject: [PATCH] xserver: Allow to add extra options to xorg config. This is especially useful if you want to supply a default XRandR configuration, where you need multiple "Monitor" sections in order to set properties for specific CRTCs (if not running in zaphod mode). Signed-off-by: aszlig --- modules/services/x11/xserver.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/services/x11/xserver.nix b/modules/services/x11/xserver.nix index 421f80c42bbb..bfdeef81f206 100644 --- a/modules/services/x11/xserver.nix +++ b/modules/services/x11/xserver.nix @@ -281,6 +281,25 @@ in description = "Lines to be added to every Display subsection of the Screen section."; }; + extraXorgOptions = mkOption { + default = ""; + example = '' + Section "Monitor" + Identifier "left monitor" + EndSection + + Section "Monitor" + Identifier "right monitor" + Option "RightOf" "left monitor" + EndSection + ''; + type = types.string; + description = '' + Additional options you want to append to your X server configuration + file. + ''; + }; + defaultDepth = mkOption { default = 0; example = 8; @@ -552,6 +571,8 @@ in EndSection '')} + + ${cfg.extraXorgOptions} ''; });