1
0
mirror of https://github.com/nix-community/home-manager synced 2024-05-31 20:13:34 +02:00

qt: support GTK+ theming for Qt services

This commit is contained in:
Robert Helgesson 2018-06-03 17:25:39 +02:00
parent 965bad626a
commit faf04b009b
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

View File

@ -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 \