nix/home-manager/config/gtk.nix

27 lines
No EOL
934 B
Nix

{ pkgs, lib, config, ... }:
{
config = lib.mkIf config.meta.home-manager.desktop.enable {
gtk = {
enable = true;
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
theme = lib.mkIf config.meta.home-manager.desktop.plasma.enable {
name = "Breeze-Dark";
package = pkgs.kdePackages.breeze-gtk;
};
cursorTheme = {
name = "Vimix-cursors";
package = pkgs.vimix-cursors;
size = 24;
};
iconTheme = {
name = "beautyline-garuda";
package = (pkgs.callPackage ../../packages/beautyline {});
};
};
# Tell home-manager to force overwrite the gtk2 configuration as it keeps getting overwritten by something (likely plasma)
home.file.${config.gtk.gtk2.configLocation}.force = true;
};
}