2024-04-16 20:14:17 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
|
|
|
|
2024-04-16 20:14:17 -07:00
|
|
|
cfg = config.programs.foot.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.foot.enable;
|
2024-04-29 13:29:06 -07:00
|
|
|
theme = lib.ctp.fromINI (sources.foot + "/themes/catppuccin-${cfg.flavour}.ini");
|
2024-04-16 20:14:17 -07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt "foot";
|
|
|
|
|
|
|
|
config.programs.foot = lib.mkIf enable { settings = theme; };
|
|
|
|
}
|