2024-10-20 03:38:50 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.rose-pine) sources;
|
2024-05-13 20:33:16 +00:00
|
|
|
|
2024-10-20 03:38:50 +00:00
|
|
|
cfg = config.programs.foot.rose-pine;
|
2024-04-17 03:14:17 +00:00
|
|
|
enable = cfg.enable && config.programs.foot.enable;
|
2024-10-20 03:38:50 +00: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-17 03:14:17 +00:00
|
|
|
|
2024-08-07 01:37:42 +00:00
|
|
|
config.programs.foot = lib.mkIf enable {
|
2024-10-20 03:38:50 +00:00
|
|
|
settings.main.include = sources.foot + "/${themeName}.ini";
|
2024-08-07 01:37:42 +00:00
|
|
|
};
|
2024-04-17 03:14:17 +00:00
|
|
|
}
|