Add services.xserver.screenSection to add additional screen options.
svn path=/nixos/trunk/; revision=21662
This commit is contained in:
parent
43fcf8a2b2
commit
1ba1b66efd
@ -254,6 +254,14 @@ in
|
|||||||
description = "Contents of the first Device section of the X server configuration file.";
|
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 {
|
monitorSection = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = "HorizSync 28-49";
|
example = "HorizSync 28-49";
|
||||||
@ -485,6 +493,8 @@ in
|
|||||||
Identifier "Screen-${driver.name}[0]"
|
Identifier "Screen-${driver.name}[0]"
|
||||||
Device "Device-${driver.name}[0]"
|
Device "Device-${driver.name}[0]"
|
||||||
|
|
||||||
|
${cfg.screenSection}
|
||||||
|
|
||||||
${optionalString (cfg.defaultDepth != 0) ''
|
${optionalString (cfg.defaultDepth != 0) ''
|
||||||
DefaultDepth ${toString cfg.defaultDepth}
|
DefaultDepth ${toString cfg.defaultDepth}
|
||||||
''}
|
''}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user