mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
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:
parent
0412d6413e
commit
e4d949ec88
1 changed files with 21 additions and 0 deletions
|
@ -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}
|
||||
'';
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue