Kde: change gtk2 config location

This commit is contained in:
Toast 2023-11-12 23:25:23 +01:00
parent 37dcf27b05
commit 749476efcc

View file

@ -85,7 +85,17 @@ in
environment.systemPackages = [ breezeTint lookAndFeel plasmaDefaults ]; environment.systemPackages = [ breezeTint lookAndFeel plasmaDefaults ];
# Plasma configs should be on all users # Plasma configs should be on all users
home-manager.sharedModules = [{ home-manager.sharedModules = [
(
{ config, ... }:
let gtk2rc = "${config.xdg.configHome}/gtk-2.0/gtkrc"; in
{
gtk.gtk2.configLocation = gtk2rc;
# Kde has an annoying habit of overwriting the gtk2 config file
home.file."${gtk2rc}".force = true;
}
)
{
imports = [ flakeSelf.inputs.plasma-manager.homeManagerModules.plasma-manager ]; imports = [ flakeSelf.inputs.plasma-manager.homeManagerModules.plasma-manager ];
gtk = { gtk = {
enable = true; enable = true;
@ -116,5 +126,6 @@ in
"plasmanotifyrc"."Notifications"."NormalAlwaysOnTop" = true; "plasmanotifyrc"."Notifications"."NormalAlwaysOnTop" = true;
}; };
}; };
}]; }
];
} }