11.stylix/modules/foot/hm.nix
Flameopathic 3fce9fb038
treewide: propagate inputs and remove templates (#926)
Closes: https://github.com/danth/stylix/issues/238
Link: https://github.com/danth/stylix/pull/926

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-03-09 15:46:36 +01:00

25 lines
550 B
Nix

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