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>
25 lines
550 B
Nix
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;
|
|
};
|
|
}
|