fix(home-manager/foot): avoid IFD (#300)
This commit is contained in:
parent
41d51d7f04
commit
38df8bf46f
1 changed files with 3 additions and 2 deletions
|
@ -4,10 +4,11 @@ let
|
||||||
|
|
||||||
cfg = config.programs.foot.catppuccin;
|
cfg = config.programs.foot.catppuccin;
|
||||||
enable = cfg.enable && config.programs.foot.enable;
|
enable = cfg.enable && config.programs.foot.enable;
|
||||||
theme = lib.ctp.fromINI (sources.foot + "/themes/catppuccin-${cfg.flavor}.ini");
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.programs.foot.catppuccin = lib.ctp.mkCatppuccinOpt { name = "foot"; };
|
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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue