modules/theme: enable gtk theming if global theming enabled by default

This commit is contained in:
Anthony Rodriguez 2024-12-04 23:42:19 +01:00
parent 7e5a0442ec
commit 44f2dd55d5
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -6,13 +6,17 @@
... ...
}: let }: let
inherit (builtins) pathExists; inherit (builtins) pathExists;
inherit (lib) mkIf mkOption mkEnableOption; inherit (lib) mkIf mkOption;
inherit (lib.types) package str; inherit (lib.types) bool package str;
cfg = config.theme.gtk; cfg = config.theme.gtk;
in { in {
options.theme.gtk = { options.theme.gtk = {
enable = mkEnableOption "enable GTK theming options"; enable = mkOption {
type = bool;
description = "enable GTK theming options";
default = config.theme.enable;
};
theme = { theme = {
name = mkOption { name = mkOption {
type = str; type = str;