flocon/home/programs/gtk.nix

51 lines
1 KiB
Nix
Raw Normal View History

2024-10-03 09:17:23 +00:00
{
pkgs,
config,
...
}: {
home.pointerCursor = {
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
2024-10-06 10:13:41 +00:00
size = 24;
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 = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = let
accent = "lavender";
variant = "frappe";
size = "standard";
in {
name = "catppuccin-${variant}-${accent}-${size}";
package = pkgs.catppuccin-gtk.override {
# https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix
accents = [accent];
inherit variant size;
};
};
};
}