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 <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-01-09 22:19:58 +01:00
parent 0412d6413e
commit e4d949ec88
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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}
'';
});