1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 18:59:47 +01: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) { config = mkIf (cfg.enable && cfg.useGtkTheme) {
home.sessionVariables.QT_QPA_PLATFORMTHEME = "gtk2"; home.sessionVariables.QT_QPA_PLATFORMTHEME = "gtk2";
home.packages = [ pkgs.libsForQt5.qtstyleplugins ]; home.packages = [ pkgs.libsForQt5.qtstyleplugins ];
xsession.profileExtra =
"systemctl --user import-environment QT_QPA_PLATFORMTHEME";
home.activation.useGtkThemeInQt4 = dag.entryAfter ["writeBoundary"] '' home.activation.useGtkThemeInQt4 = dag.entryAfter ["writeBoundary"] ''
$DRY_RUN_CMD ${pkgs.crudini}/bin/crudini $VERBOSE_ARG \ $DRY_RUN_CMD ${pkgs.crudini}/bin/crudini $VERBOSE_ARG \