Fix that annoying GTK plasma file issue...

This commit is contained in:
Evie Litherland-Smith 2024-09-29 16:39:13 +01:00
parent b8f899b854
commit a6a900cfab

View file

@ -9,17 +9,20 @@
./services/email/default.nix ./services/email/default.nix
./services/calendar/default.nix ./services/calendar/default.nix
]; ];
home.packages = with pkgs; [ home = {
packages = with pkgs; [
webcord webcord
signal-desktop signal-desktop
whatsapp-for-linux whatsapp-for-linux
x2goclient x2goclient
]; ];
file.${config.gtk.gtk2.configLocation}.force = true; # Stop clashing with KDE
};
services.syncthing.enable = true; services.syncthing.enable = true;
programs.mpv.enable = true; programs.mpv.enable = true;
gtk = { gtk = {
enable = true; enable = true;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/dummyrc"; # Stop clashing with KDE gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
iconTheme = { iconTheme = {
package = pkgs.papirus-icon-theme; package = pkgs.papirus-icon-theme;
name = "Papirus"; name = "Papirus";
@ -51,6 +54,12 @@
}; };
}; };
configFile = { configFile = {
# Ensure GTK config is set
"gtk-3.0/gtk.css".force = true;
"gtk-3.0/settings.ini".force = true;
"gtk-4.0/gtk.css".force = true;
"gtk-4.0/settings.ini".force = true;
# Autostart some programs
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop"; "autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop"; "autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
}; };