Skip to content

Commit

Permalink
feat(home-manager): add transparent option for micro
Browse files Browse the repository at this point in the history
  • Loading branch information
henrisota committed Dec 19, 2024
1 parent a1ae41a commit fb22d2d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/home-manager/micro.nix
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit fb22d2d

Please sign in to comment.