summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-05-30 16:23:07 +0800
committerGitHub <noreply@github.com>2018-05-30 16:23:07 +0800
commit159c1576c8943d76b8e916e6e60e7a4a99b60405 (patch)
treeb57a32135206bb0e3eec9d9e5df91fedf4e42e8e /nixos
parent11a2d07749a155713449aa65b8db5bcccab59a26 (diff)
parentb368a1103b8e088d4a73c5953a610142afd65724 (diff)
downloadnixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.tar
nixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.tar.gz
nixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.tar.bz2
nixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.tar.lz
nixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.tar.xz
nixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.tar.zst
nixlib-159c1576c8943d76b8e916e6e60e7a4a99b60405.zip
Merge pull request #40579 from peterhoeg/m/sddm
sddm: add support for hidpi mode
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/display-managers/sddm.nix15
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 = "";