gtk: fixed stuff

This commit is contained in:
Charlie Root 2024-08-15 23:59:00 +02:00
commit 2d98ccfdb5
4 changed files with 16 additions and 21 deletions

View file

@ -66,6 +66,7 @@
};
};
style = {
gtk.enable = true;
stylix = {
enable = true;
scheme = "${pkgs.base16-schemes}/share/themes/bright.yaml";
@ -108,7 +109,6 @@
};
theming = {
quickshell.enable = true;
gtk.enable = true;
qt = {
enable = false;
package = pkgs.kde-gruvbox;

View file

@ -4,11 +4,10 @@
config,
...
}: let
inherit (config.modules.other.system) username;
inherit (lib) mkOption mkEnableOption;
inherit (lib.types) str package submodule;
in {
options.modules.style.gtk = {
options.modules.usrEnv.style.gtk = {
enable = mkEnableOption "Wether to enable GTK theming";
theme = {
name = mkOption {
@ -22,21 +21,17 @@ in {
type = package;
};
};
iconTheme = mkOption {
iconTheme = {
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;
};
};
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;
};
};
};

View file

@ -9,7 +9,7 @@ in {
imports = [
./stylix.nix
# ./qt.nix
# ./gtk.nix
./gtk.nix
];
options.modules.style = {

View file

@ -4,9 +4,9 @@
...
}:
with lib; let
cfg = config.modules.theming.gtk;
cfg = config.modules.usrEnv.style.gtk;
inherit (config.modules.other.system) username;
inherit (config.modules.style.gtk) theme iconTheme;
inherit (config.modules.usrEnv.style.gtk) theme iconTheme;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
@ -16,7 +16,7 @@ in {
inherit (theme) name package;
};
iconTheme = {
inherit (iconTheme) name Package;
inherit (iconTheme) name package;
};
};
};