2024-10-19 20:38:50 -07:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
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
|
|
|
|
|
|
|
themeName =
|
|
|
|
if (cfg.flavor == "main")
|
|
|
|
then "rose-pine"
|
|
|
|
else "rose-pine-${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
|
|
|
}
|