flocon/home/programs/gtk.nix

40 lines
707 B
Nix
Raw Normal View History

2024-10-03 09:17:23 +00:00
{
pkgs,
config,
nixosConfig,
2024-10-03 09:17:23 +00:00
...
}: {
home.pointerCursor = {
inherit (nixosConfig.style.cursorTheme) name package size;
2024-10-03 09:17:23 +00:00
gtk.enable = true;
x11.enable = true;
};
gtk = let
commonGtkConfig = {
gtk-decoration-layout = ":menu";
};
in {
2024-10-03 09:17:23 +00:00
enable = true;
font = {
name = "Inter";
package = pkgs.inter;
size = 11;
2024-10-03 09:17:23 +00:00
};
gtk3.extraConfig = commonGtkConfig;
gtk4.extraConfig = commonGtkConfig;
2024-10-03 09:17:23 +00:00
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
iconTheme = {
inherit (nixosConfig.style.gtk.iconTheme) name package;
2024-10-03 09:17:23 +00:00
};
theme = {
inherit (nixosConfig.style.gtk.theme) name package;
2024-10-03 09:17:23 +00:00
};
};
}