mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03: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
@ -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 New Issue
Block a user