From 1fdd3e4d570304e2ecddc49473f045ae887f1ff6 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 fd16f22d..fe64deca 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.programs.micro.catppuccin; enable = cfg.enable && config.programs.micro.enable; - themePath = "catppuccin-${cfg.flavor}.micro"; + themePath = + "catppuccin-${cfg.flavor}" + lib.optionalString cfg.transparent "-transparent" + ".micro"; in - { - options.programs.micro.catppuccin = catppuccinLib.mkCatppuccinOption { name = "micro"; }; + options.programs.micro.catppuccin = catppuccinLib.mkCatppuccinOption { name = "micro"; } // { + transparent = lib.mkEnableOption "transparent version of flavor"; + }; config = lib.mkIf enable { programs.micro = {