diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-07-17 15:53:29 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-07-17 15:53:29 -0500 |
commit | 8df4901a8e4a3526ac8ec037b65283be38925560 (patch) | |
tree | a45e4610becb944d0df7e990ed1110fb2bfc1cf0 /modules/home/theme.nix | |
parent | 7424849c7ad76ff9aa3963ef59ff5f66471abb8a (diff) | |
download | nixos-8df4901a8e4a3526ac8ec037b65283be38925560.tar.xz nixos-8df4901a8e4a3526ac8ec037b65283be38925560.zip |
theme.enable option added
Diffstat (limited to 'modules/home/theme.nix')
-rw-r--r-- | modules/home/theme.nix | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |