mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 17:10:18 +02:00
sddm: add support for hidpi mode
This commit is contained in:
parent
6db7f92cc2
commit
b368a1103b
|
@ -65,6 +65,10 @@ let
|
||||||
XauthPath=${pkgs.xorg.xauth}/bin/xauth
|
XauthPath=${pkgs.xorg.xauth}/bin/xauth
|
||||||
DisplayCommand=${Xsetup}
|
DisplayCommand=${Xsetup}
|
||||||
DisplayStopCommand=${Xstop}
|
DisplayStopCommand=${Xstop}
|
||||||
|
EnableHidpi=${if cfg.enableHidpi then "true" else "false"}
|
||||||
|
|
||||||
|
[Wayland]
|
||||||
|
EnableHidpi=${if cfg.enableHidpi then "true" else "false"}
|
||||||
|
|
||||||
${optionalString cfg.autoLogin.enable ''
|
${optionalString cfg.autoLogin.enable ''
|
||||||
[Autologin]
|
[Autologin]
|
||||||
|
@ -95,6 +99,17 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableHidpi = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to enable automatic HiDPI mode.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Versions up to 0.17 are broken so this only works from 0.18 onwards.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
|
|
Loading…
Reference in a new issue