fix(home-manager): match refactors in bat source (#91)

This commit is contained in:
Ryan Cao 2024-03-17 16:16:41 +08:00 committed by GitHub
parent d4c0e280e4
commit 03b95cad3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@
let let
cfg = config.programs.bat.catppuccin; cfg = config.programs.bat.catppuccin;
enable = cfg.enable && config.programs.bat.enable; enable = cfg.enable && config.programs.bat.enable;
themeName = "Catppuccin-${cfg.flavour}"; themeName = "Catppuccin ${lib.ctp.mkUpper cfg.flavour}";
in in
{ {
options.programs.bat.catppuccin = options.programs.bat.catppuccin =
@ -18,7 +18,7 @@ in
themes.${themeName} = { themes.${themeName} = {
src = sources.bat; src = sources.bat;
file = "${themeName}.tmTheme"; file = "themes/${themeName}.tmTheme";
}; };
}; };
}; };