style: big gtk rework

I hate gtk
This commit is contained in:
Charlie Root 2025-04-06 14:03:41 +02:00
commit e03b8873cb
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
3 changed files with 58 additions and 19 deletions

View file

@ -7,9 +7,9 @@
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) str package;
inherit (lib.modules) mkIf;
cfg = config.modules.theme.gtk;
cfg = config.modules.theming.gtk;
in {
options.modules.theme.gtk = {
options.modules.theming.gtk = {
enable = mkEnableOption "Wether to enable GTK theming";
theme = {
name = mkOption {
@ -32,7 +32,7 @@ in {
};
package = mkOption {
description = "The GTK icon theme package";
default = pkgs.catppuccin-papirus-folders;
default = pkgs.papirus-icon-theme;
type = package;
};
};
@ -40,5 +40,25 @@ in {
config = mkIf cfg.enable {
# NOTE: we need this or gtk breaks
programs.dconf.enable = true;
environment = {
systemPackages = builtins.attrValues {
inherit
(pkgs)
gruvbox-gtk-theme
papirus-icon-theme
;
};
variables = let
cursorSize = 32;
in {
GTK_THEME = "Gruvbox-Dark";
XCURSOR_THEME = "BreezeX-RosePine-Linux";
XCURSOR_SIZE = cursorSize;
HYPRCURSOR_THEME = "BreezeX-RosePine-Linux";
HYPRCURSOR_SIZE = cursorSize;
};
};
};
}