1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

qt: fix qt.platformTheme = "gtk3"

This commit is contained in:
Thiago Kenji Okada 2023-11-20 20:33:29 +00:00
parent fff5204e5d
commit 3de857fa7d
3 changed files with 21 additions and 1 deletions

View file

@ -209,7 +209,7 @@ in {
systemd.user.sessionVariables = envVars // envVarsExtra; systemd.user.sessionVariables = envVars // envVarsExtra;
home.packages = (lib.optionals (cfg.platformTheme != null) home.packages = (lib.optionals (cfg.platformTheme != null)
platformPackages.${cfg.platformTheme}) platformPackages.${cfg.platformTheme} or [ ])
++ (lib.optionals (cfg.style.package != null) ++ (lib.optionals (cfg.style.package != null)
(lib.toList cfg.style.package)); (lib.toList cfg.style.package));

View file

@ -1,5 +1,6 @@
{ {
qt-basic = ./qt-basic.nix; qt-basic = ./qt-basic.nix;
qt-platform-theme-gtk = ./qt-platform-theme-gtk.nix; qt-platform-theme-gtk = ./qt-platform-theme-gtk.nix;
qt-platform-theme-gtk3 = ./qt-platform-theme-gtk3.nix;
qt-platform-theme-gnome = ./qt-platform-theme-gnome.nix; qt-platform-theme-gnome = ./qt-platform-theme-gnome.nix;
} }

View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
{
config = {
qt = {
enable = true;
platformTheme = "gtk3";
};
nmt.script = ''
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_QPA_PLATFORMTHEME="gtk3"'
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_PLUGIN_PATH'
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QML2_IMPORT_PATH'
'';
};
}