2023-07-13 16:17:51 +00:00
|
|
|
{
|
2024-10-19 18:15:31 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-05 04:55:40 +00:00
|
|
|
}:
|
|
|
|
let
|
2024-10-19 18:15:31 +00:00
|
|
|
inherit (config.rose-pine) sources;
|
2024-11-05 04:55:40 +00:00
|
|
|
|
2024-10-19 18:15:31 +00:00
|
|
|
cfg = config.programs.alacritty.rose-pine;
|
|
|
|
enable = cfg.enable && config.programs.alacritty.enable;
|
2024-11-05 04:55:40 +00:00
|
|
|
|
|
|
|
themeName = lib.rp.getKebabTheme cfg.flavor;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.alacritty.rose-pine = lib.rp.mkRosePineOpt { name = "alacritty"; };
|
2023-04-15 23:48:38 +00:00
|
|
|
|
2024-01-11 21:23:27 +00:00
|
|
|
config = lib.mkIf enable {
|
2024-11-05 04:55:40 +00:00
|
|
|
programs.alacritty.settings = lib.importTOML "${sources.alacritty}/dist/${themeName}.toml";
|
2024-01-11 21:23:27 +00:00
|
|
|
};
|
2023-04-15 23:48:38 +00:00
|
|
|
}
|