nixos/plasma5: add useQtScaling option

closes #105943

wackbyte 0242265e fe2a837b

Changed files
+8
nixos
modules
services
x11
desktop-managers
+8
nixos/modules/services/x11/desktop-managers/plasma5.nix
···
disabled by default.
'';
};
+
+
useQtScaling = mkOption {
+
type = types.bool;
+
default = false;
+
description = "Enable HiDPI scaling in Qt.";
+
};
};
};
···
];
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 ];