nixos/plasma5: add useQtScaling option

closes #105943
This commit is contained in:
wackbyte
2021-10-15 11:50:17 +08:00
committed by Peter Hoeg
parent fe2a837b19
commit 0242265e55
@@ -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 ];