From faf04b009bf2cfaba85802880986affd8bf47653 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 3 Jun 2018 17:25:39 +0200 Subject: [PATCH] qt: support GTK+ theming for Qt services --- modules/misc/qt.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/misc/qt.nix b/modules/misc/qt.nix index ae697b25e..c644c7040 100644 --- a/modules/misc/qt.nix +++ b/modules/misc/qt.nix @@ -30,6 +30,8 @@ in config = mkIf (cfg.enable && cfg.useGtkTheme) { home.sessionVariables.QT_QPA_PLATFORMTHEME = "gtk2"; home.packages = [ pkgs.libsForQt5.qtstyleplugins ]; + xsession.profileExtra = + "systemctl --user import-environment QT_QPA_PLATFORMTHEME"; home.activation.useGtkThemeInQt4 = dag.entryAfter ["writeBoundary"] '' $DRY_RUN_CMD ${pkgs.crudini}/bin/crudini $VERBOSE_ARG \