options/style: delete
This commit is contained in:
parent
753fb58c91
commit
7616375700
6 changed files with 67 additions and 122 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue