nichts/modules/gui/gtk.nix

56 lines
1.6 KiB
Nix
Raw Normal View History

2024-04-29 23:26:46 +02:00
{ config, lib, pkgs, ... }:
with lib; let
2024-04-12 22:03:29 +02:00
cfg = config.modules.themes.gtk;
username = config.modules.other.system.username;
2024-04-10 17:39:26 +02:00
hmCfg = config.home-manager.users.${username};
in {
2024-04-12 22:03:29 +02:00
options.modules.themes.gtk = {
2024-04-10 17:39:26 +02:00
enable = mkEnableOption "gtk theming";
name = mkOption {
description = "gtk theme name";
type = types.str;
};
package = mkOption {
description = "gtk theme package";
type = types.package;
};
2024-04-29 23:01:08 +02:00
# 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;
theme = {
2024-05-06 23:17:31 +02:00
#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
};
};
2024-05-04 01:33:33 +02:00
home.sessionVariables = {
2024-05-06 23:17:31 +02:00
#GTK_THEME = "Gruvbox-Dark-BL";
2024-05-04 01:33:33 +02:00
# GTK_USE_PORTAL = "1";
};
2024-04-10 17:39:26 +02:00
};
};
}