2024-05-21 21:53:46 +00:00
|
|
|
{ config, lib, ... }:
|
2023-07-13 16:17:51 +00:00
|
|
|
let
|
2024-05-13 20:33:16 +00:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-07-13 16:17:51 +00:00
|
|
|
cfg = config.programs.alacritty.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.alacritty.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 16:29:30 +00:00
|
|
|
options.programs.alacritty.catppuccin = lib.ctp.mkCatppuccinOpt { name = "alacritty"; };
|
2023-04-15 23:48:38 +00:00
|
|
|
|
2024-01-11 21:23:27 +00:00
|
|
|
config = lib.mkIf enable {
|
2024-05-22 00:23:55 +00:00
|
|
|
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/catppuccin-${cfg.flavor}.toml";
|
2024-01-11 21:23:27 +00:00
|
|
|
};
|
2023-04-15 23:48:38 +00:00
|
|
|
}
|