fix(home-manager/foot): avoid IFD (#300)

This commit is contained in:
Anomalocaridid 2024-08-06 21:37:42 -04:00 committed by GitHub
parent 41d51d7f04
commit 38df8bf46f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,10 +4,11 @@ let
cfg = config.programs.foot.catppuccin;
enable = cfg.enable && config.programs.foot.enable;
theme = lib.ctp.fromINI (sources.foot + "/themes/catppuccin-${cfg.flavor}.ini");
in
{
options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt { name = "foot"; };
config.programs.foot = lib.mkIf enable { settings = theme; };
config.programs.foot = lib.mkIf enable {
settings.main.include = sources.foot + "/themes/catppuccin-${cfg.flavor}.ini";
};
}