2024-10-19 20:38:50 -07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-04 20:55:40 -08:00
|
|
|
}:
|
|
|
|
let
|
2024-10-19 20:38:50 -07:00
|
|
|
inherit (config.rose-pine) sources;
|
2024-05-13 13:33:16 -07:00
|
|
|
|
2024-10-19 20:38:50 -07:00
|
|
|
cfg = config.programs.foot.rose-pine;
|
2024-04-16 20:14:17 -07:00
|
|
|
enable = cfg.enable && config.programs.foot.enable;
|
2024-10-19 20:38:50 -07:00
|
|
|
|
2024-11-04 20:55:40 -08:00
|
|
|
themeName = lib.rp.getKebabTheme cfg.flavor;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.foot.rose-pine = lib.rp.mkRosePineOpt { name = "foot"; };
|
2024-04-16 20:14:17 -07:00
|
|
|
|
2024-08-06 18:37:42 -07:00
|
|
|
config.programs.foot = lib.mkIf enable {
|
2024-10-19 20:38:50 -07:00
|
|
|
settings.main.include = sources.foot + "/${themeName}.ini";
|
2024-08-06 18:37:42 -07:00
|
|
|
};
|
2024-04-16 20:14:17 -07:00
|
|
|
}
|