flocon/home/programs/gtk.nix

43 lines
858 B
Nix
Raw Normal View History

2024-10-03 09:17:23 +00:00
{
inputs,
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
isDark = inputs.basix.schemeData.base16.${nixosConfig.style.scheme}.variant == "dark";
commonGtkConfig = {
gtk-decoration-layout = ":menu";
gtk-application-prefer-dark-theme = isDark;
};
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
};
};
}