diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-05-16 12:15:29 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-05-16 12:15:29 +0800 |
commit | b368a1103b8e088d4a73c5953a610142afd65724 (patch) | |
tree | 45c6f38bb2cdba06620a60aa5f124667743f5bc2 /nixos/modules/services/x11/display-managers | |
parent | 6db7f92cc2af827e8b8b181bf5ed828a1d0f141d (diff) | |
download | nixlib-b368a1103b8e088d4a73c5953a610142afd65724.tar nixlib-b368a1103b8e088d4a73c5953a610142afd65724.tar.gz nixlib-b368a1103b8e088d4a73c5953a610142afd65724.tar.bz2 nixlib-b368a1103b8e088d4a73c5953a610142afd65724.tar.lz nixlib-b368a1103b8e088d4a73c5953a610142afd65724.tar.xz nixlib-b368a1103b8e088d4a73c5953a610142afd65724.tar.zst nixlib-b368a1103b8e088d4a73c5953a610142afd65724.zip |
sddm: add support for hidpi mode
Diffstat (limited to 'nixos/modules/services/x11/display-managers')
-rw-r--r-- | nixos/modules/services/x11/display-managers/sddm.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/sddm.nix b/nixos/modules/services/x11/display-managers/sddm.nix index 2d4cb8aa20a5..df782e82ed15 100644 --- a/nixos/modules/services/x11/display-managers/sddm.nix +++ b/nixos/modules/services/x11/display-managers/sddm.nix @@ -65,6 +65,10 @@ let XauthPath=${pkgs.xorg.xauth}/bin/xauth DisplayCommand=${Xsetup} DisplayStopCommand=${Xstop} + EnableHidpi=${if cfg.enableHidpi then "true" else "false"} + + [Wayland] + EnableHidpi=${if cfg.enableHidpi then "true" else "false"} ${optionalString cfg.autoLogin.enable '' [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 { type = types.lines; default = ""; |