move QT_QPA_PLATFORMTHEME to environment.sessionVariables

this fixes some gui programs not being in the right theme
This commit is contained in:
jacekpoz 2024-02-15 12:16:35 +01:00
parent f0c9b0892a
commit 798cd63bdd
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C

View file

@ -28,6 +28,10 @@ in {
};
config = mkIf cfg.enable {
environment.sessionVariables = {
QT_QPA_PLATFORMTHEME = "qt5ct";
};
home-manager.users.${config'.username} = {
# thanks raf :3 https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/themes/qt.nix
qt = {
@ -57,7 +61,6 @@ in {
QT_QPA_PLATFORM = "wayland;xcb";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
DISABLE_QT_COMPAT = "0";
QT_QPA_PLATFORMTHEME = "qt5ct";
};
};