options/style: delete

This commit is contained in:
Charlie Root 2025-03-26 19:16:28 +01:00
commit 7616375700
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
6 changed files with 67 additions and 122 deletions

View file

@ -1,12 +1,44 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.usrEnv.style.gtk;
}: let
inherit (lib.options) mkOption mkEnableOption;
inherit (lib.types) str package;
inherit (lib.modules) mkIf;
cfg = config.modules.theme.gtk;
in {
options.modules.theme.gtk = {
enable = mkEnableOption "Wether to enable GTK theming";
theme = {
name = mkOption {
description = "The GTK theme name";
default = "Gruvbox-Dark-BL";
type = str;
};
package = mkOption {
description = "The GTK theme package";
default = pkgs.gruvbox-gtk-theme;
type = package;
};
};
iconTheme = {
description = "The GTK icon theme";
name = mkOption {
description = "The GTK icon theme name";
default = "Papirus-Dark";
type = str;
};
package = mkOption {
description = "The GTK icon theme package";
default = pkgs.catppuccin-papirus-folders;
type = package;
};
};
};
config = mkIf cfg.enable {
programs.dconf.enable = true; # NOTE: we need this or gtk breaks
# NOTE: we need this or gtk breaks
programs.dconf.enable = true;
};
}