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