2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (lib) ctp;
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-07-13 09:17:51 -07:00
|
|
|
cfg = config.programs.alacritty.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.alacritty.enable;
|
|
|
|
in
|
|
|
|
{
|
2023-04-17 09:44:07 -07:00
|
|
|
options.programs.alacritty.catppuccin =
|
2023-11-02 10:55:47 -07:00
|
|
|
ctp.mkCatppuccinOpt "alacritty";
|
2023-04-15 16:48:38 -07:00
|
|
|
|
2024-01-11 13:23:27 -08:00
|
|
|
config = lib.mkIf enable {
|
|
|
|
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavour}.toml";
|
|
|
|
};
|
2023-04-15 16:48:38 -07:00
|
|
|
}
|