From 8df4901a8e4a3526ac8ec037b65283be38925560 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Thu, 17 Jul 2025 15:53:29 -0500 Subject: theme.enable option added --- modules/home/theme.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/home/theme.nix') diff --git a/modules/home/theme.nix b/modules/home/theme.nix index 2288610..9e4edae 100644 --- a/modules/home/theme.nix +++ b/modules/home/theme.nix @@ -7,6 +7,7 @@ let ; in { options = { + theme.enable = lib.mkEnableOption "enables theming"; theme.mint = { enable = lib.mkEnableOption "enables mint theme"; # TODO add theme.dark option instead of specifying Dark-Color @@ -16,7 +17,7 @@ in { "Sand" "Teal" "Dark-Aqua" "Dark-Blue" "Dark-Green" "Dark-Grey" "Dark-Orange" "Dark-Pink" "Dark-Purple" "Dark-Red" "Dark-Sand" "Dark-Teal" - ]; + ]; default = "Dark-Aqua"; description = "mint-y theme color eg. 'Dark-Aqua' or 'Red'"; }; @@ -67,7 +68,7 @@ in { }; }; - config = { + config = lib.mkIf config.theme.enable { gtk = { enable = true; theme = lib.mkIf config.theme.mint.enable { -- cgit v1.2.3