Link: https://github.com/danth/stylix/pull/1164 Closes https://github.com/danth/stylix/issues/1161 Closes https://github.com/danth/stylix/discussions/1163 Required for https://github.com/danth/stylix/pull/1158
20 lines
543 B
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;
|
|
};
|
|
}
|