mirror of
https://github.com/danth/stylix
synced 2024-11-10 06:34:15 +00:00
b42555850b
This reduces our reliance on import-from-derivation, so evaluation is faster.
24 lines
573 B
Nix
24 lines
573 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.stylix.targets.foot;
|
|
|
|
theme = config.lib.stylix.colors {
|
|
templateRepo = config.lib.stylix.templates.base16-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;
|
|
};
|
|
}
|