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 18, 2024
1 parent 5cdefd6 commit 1fdd3e4
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.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 = {
Expand Down

0 comments on commit 1fdd3e4

Please sign in to comment.