From 0242265e551d0ea9f674bf771065f353f780b1a5 Mon Sep 17 00:00:00 2001 From: wackbyte Date: Fri, 8 Oct 2021 20:07:03 -0400 Subject: [PATCH] nixos/plasma5: add useQtScaling option closes #105943 --- nixos/modules/services/x11/desktop-managers/plasma5.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index 7dfecf6e6f5e..11cb4d3b8a95 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -168,6 +168,12 @@ in disabled by default. ''; }; + + useQtScaling = mkOption { + type = types.bool; + default = false; + description = "Enable HiDPI scaling in Qt."; + }; }; }; @@ -340,6 +346,8 @@ in environment.etc."X11/xkb".source = xcfg.xkbDir; + environment.sessionVariables.PLASMA_USE_QT_SCALING = mkIf cfg.useQtScaling "1"; + # Enable GTK applications to load SVG icons services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];