From fb22d2d28ceb468aa759e12c26ae3bc31810986c Mon Sep 17 00:00:00 2001 From: Henri Sota Date: Wed, 18 Dec 2024 22:56:31 +0100 Subject: [PATCH] feat(home-manager): add transparent option for micro --- modules/home-manager/micro.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/home-manager/micro.nix b/modules/home-manager/micro.nix index 1c3c5766..dcf7b99c 100644 --- a/modules/home-manager/micro.nix +++ b/modules/home-manager/micro.nix @@ -1,17 +1,18 @@ { catppuccinLib }: { config, lib, ... }: - let inherit (config.catppuccin) sources; cfg = config.catppuccin.micro; enable = cfg.enable && config.programs.micro.enable; - themePath = "catppuccin-${cfg.flavor}.micro"; + themePath = + "catppuccin-${cfg.flavor}" + lib.optionalString cfg.transparent "-transparent" + ".micro"; in - { - options.catppuccin.micro = catppuccinLib.mkCatppuccinOption { name = "micro"; }; + options.catppuccin.micro = catppuccinLib.mkCatppuccinOption { name = "micro"; } // { + transparent = lib.mkEnableOption "transparent version of flavor"; + }; imports = catppuccinLib.mkRenamedCatppuccinOptions { from = [