gtk: change theme options
This commit is contained in:
parent
8f63946c67
commit
ce02a2b817
2 changed files with 49 additions and 39 deletions
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (config.modules.other.system) username;
|
||||||
|
inherit (lib) mkOption mkEnableOption;
|
||||||
|
inherit (lib.types) str package submodule;
|
||||||
|
in {
|
||||||
|
options.modules.style.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 = mkOption {
|
||||||
|
description = "The GTK icon theme";
|
||||||
|
type = submodule {
|
||||||
|
options = {
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,56 +1,23 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
cfg = config.modules.theming.gtk;
|
cfg = config.modules.theming.gtk;
|
||||||
inherit (config.modules.other.system) username;
|
inherit (config.modules.other.system) username;
|
||||||
|
inherit (config.modules.style.gtk) theme iconTheme;
|
||||||
in {
|
in {
|
||||||
options.modules.theming.gtk = {
|
|
||||||
enable = mkEnableOption "gtk theming";
|
|
||||||
name = mkOption {
|
|
||||||
description = "gtk theme name";
|
|
||||||
type = types.str;
|
|
||||||
};
|
|
||||||
package = mkOption {
|
|
||||||
description = "gtk theme package";
|
|
||||||
type = types.package;
|
|
||||||
};
|
|
||||||
# iconTheme = mkOption {
|
|
||||||
# description = "gtk icon theme";
|
|
||||||
# type = with types; submodule {
|
|
||||||
# options = {
|
|
||||||
# name = mkOption {
|
|
||||||
# description = "gtk icon theme name";
|
|
||||||
# type = str;
|
|
||||||
# };
|
|
||||||
# package = mkOption {
|
|
||||||
# description = "gtk icon theme package";
|
|
||||||
# type = package;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home-manager.users.${username} = {
|
home-manager.users.${username} = {
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# theme = {
|
theme = {
|
||||||
# package = pkgs.gruvbox-gtk-theme;
|
inherit (theme) name package;
|
||||||
# name = "Gruvbox-Dark-BL";
|
};
|
||||||
# };
|
iconTheme = {
|
||||||
iconTheme = {
|
inherit (iconTheme) name Package;
|
||||||
name = "Papirus-Dark";
|
|
||||||
package = pkgs.catppuccin-papirus-folders;
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
home.sessionVariables = {
|
|
||||||
#GTK_THEME = "Gruvbox-Dark-BL";
|
|
||||||
# GTK_USE_PORTAL = "1";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue