Add services.xserver.screenSection to add additional screen options.

svn path=/nixos/trunk/; revision=21662
This commit is contained in:
Nicolas Pierron 2010-05-08 17:18:22 +00:00
parent 43fcf8a2b2
commit 1ba1b66efd

View File

@ -254,6 +254,14 @@ in
description = "Contents of the first Device section of the X server configuration file.";
};
screenSection = mkOption {
default = "";
example = ''
Option "RandRRotation" "on"
'';
description = "Contents of the first Screen section of the X server configuration file.";
};
monitorSection = mkOption {
default = "";
example = "HorizSync 28-49";
@ -485,6 +493,8 @@ in
Identifier "Screen-${driver.name}[0]"
Device "Device-${driver.name}[0]"
${cfg.screenSection}
${optionalString (cfg.defaultDepth != 0) ''
DefaultDepth ${toString cfg.defaultDepth}
''}