nichts/modules/gui/gtk.nix

58 lines
1.4 KiB
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
pkgs,
...
}:
with lib; let
2024-07-10 22:10:54 +02:00
cfg = config.modules.theming.gtk;
inherit (config.modules.other.system) username;
2024-04-10 17:39:26 +02:00
in {
2024-07-10 22:10:54 +02:00
options.modules.theming.gtk = {
enable = mkEnableOption "gtk theming";
name = mkOption {
description = "gtk theme name";
type = types.str;
2024-04-10 17:39:26 +02:00
};
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;
# };
# };
# };
# };
};
2024-04-10 17:39:26 +02:00
config = mkIf cfg.enable {
home-manager.users.${username} = {
gtk = {
enable = true;
2024-05-15 13:59:52 +02:00
# theme = {
# package = pkgs.gruvbox-gtk-theme;
# name = "Gruvbox-Dark-BL";
# };
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders;
2024-04-10 17:39:26 +02:00
};
};
home.sessionVariables = {
#GTK_THEME = "Gruvbox-Dark-BL";
# GTK_USE_PORTAL = "1";
};
2024-04-10 17:39:26 +02:00
};
};
2024-04-10 17:39:26 +02:00
}