11.stylix/modules/foot/hm.nix

20 lines
543 B
Nix

{ config, lib, ... }:
{
options.stylix.targets.foot.enable =
config.lib.stylix.mkEnableTarget "Foot" true;
config.programs.foot.settings = lib.mkIf config.stylix.targets.foot.enable {
main = {
include = toString (
config.lib.stylix.colors {
templateRepo = config.stylix.inputs.tinted-foot;
}
);
font =
with config.stylix.fonts;
"${monospace.name}:size=${toString sizes.terminal}";
dpi-aware = "no";
};
colors.alpha = config.stylix.opacity.terminal;
};
}