From 798cd63bdd206c826b1e446cdc2ed0b6d9dc8d70 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 15 Feb 2024 12:16:35 +0100 Subject: [PATCH] move QT_QPA_PLATFORMTHEME to environment.sessionVariables this fixes some gui programs not being in the right theme --- modules/gui/qt.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt.nix b/modules/gui/qt.nix index f632460..2bf709b 100644 --- a/modules/gui/qt.nix +++ b/modules/gui/qt.nix @@ -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"; }; };