11.stylix/modules/xresources/hm.nix
Bernardo Meurer b42555850b
Move all templates into flake inputs (#165)
This reduces our reliance on import-from-derivation, so evaluation is faster.
2023-10-10 10:44:54 +01:00

24 lines
562 B
Nix

{ pkgs, config, lib, ... }:
with config.stylix.fonts;
let
themeFile = config.lib.stylix.colors {
templateRepo = config.lib.stylix.templates.base16-xresources;
};
in
{
options.stylix.targets.xresources.enable =
config.lib.stylix.mkEnableTarget "Xresources" true;
config = lib.mkIf config.stylix.targets.xresources.enable {
xresources = {
properties = {
"*.faceName" = monospace.name;
"*.faceSize" = sizes.terminal;
"*.renderFont" = true;
};
extraConfig = builtins.readFile themeFile;
};
};
}