From 44f2dd55d58144e5d397cfaea11d2cd4f74f7aa8 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Wed, 4 Dec 2024 23:42:19 +0100 Subject: [PATCH] modules/theme: enable gtk theming if global theming enabled by default --- modules/theme/gtk.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/theme/gtk.nix b/modules/theme/gtk.nix index 2df71fe..5078699 100644 --- a/modules/theme/gtk.nix +++ b/modules/theme/gtk.nix @@ -6,13 +6,17 @@ ... }: let inherit (builtins) pathExists; - inherit (lib) mkIf mkOption mkEnableOption; - inherit (lib.types) package str; + inherit (lib) mkIf mkOption; + inherit (lib.types) bool package str; cfg = config.theme.gtk; in { options.theme.gtk = { - enable = mkEnableOption "enable GTK theming options"; + enable = mkOption { + type = bool; + description = "enable GTK theming options"; + default = config.theme.enable; + }; theme = { name = mkOption { type = str;