2024-10-20 12:06:12 -07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-04 20:55:40 -08:00
|
|
|
}:
|
|
|
|
let
|
2024-10-20 12:06:12 -07:00
|
|
|
inherit (config.rose-pine) sources;
|
2024-05-13 13:33:16 -07:00
|
|
|
|
2024-10-20 12:06:12 -07:00
|
|
|
cfg = config.programs.rio.rose-pine;
|
2024-04-16 09:23:11 -07:00
|
|
|
enable = cfg.enable && config.programs.rio.enable;
|
2024-10-20 12:06:12 -07:00
|
|
|
|
2024-11-04 20:55:40 -08:00
|
|
|
themeName = lib.rp.getKebabTheme cfg.flavor;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.rio.rose-pine = lib.rp.mkRosePineOpt { name = "rio"; };
|
2024-04-16 09:23:11 -07:00
|
|
|
|
|
|
|
config = lib.mkIf enable {
|
2024-10-20 17:42:30 -07:00
|
|
|
programs.rio.settings = lib.importTOML "${sources.rio-terminal}/${themeName}.toml";
|
2024-04-16 09:23:11 -07:00
|
|
|
};
|
|
|
|
}
|