1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00: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 \