Add DPI option to xserver invocation.
This commit is contained in:
parent
bd4720a7d6
commit
98d9bbaec2
|
@ -219,6 +219,12 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dpi = mkOption {
|
||||||
|
type = types.nullOr types.int;
|
||||||
|
default = 0;
|
||||||
|
description = "DPI resolution to use for X server.";
|
||||||
|
};
|
||||||
|
|
||||||
startDbusSession = mkOption {
|
startDbusSession = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -513,6 +519,7 @@ in
|
||||||
"-xkbdir" "${cfg.xkbDir}"
|
"-xkbdir" "${cfg.xkbDir}"
|
||||||
] ++ optional (cfg.display != null) ":${toString cfg.display}"
|
] ++ optional (cfg.display != null) ":${toString cfg.display}"
|
||||||
++ optional (cfg.tty != null) "vt${toString cfg.tty}"
|
++ optional (cfg.tty != null) "vt${toString cfg.tty}"
|
||||||
|
++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}"
|
||||||
++ optionals (cfg.display != null) [ "-logfile" "/var/log/X.${toString cfg.display}.log" ]
|
++ optionals (cfg.display != null) [ "-logfile" "/var/log/X.${toString cfg.display}.log" ]
|
||||||
++ optional (!cfg.enableTCP) "-nolisten tcp";
|
++ optional (!cfg.enableTCP) "-nolisten tcp";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue