infrastructure/config/modules/home/theme.nix
2021-08-19 00:57:36 +01:00

30 lines
548 B
Nix

{ config, lib, ... }:
/*
This module:
* provides a central way to change the font my system uses.
*/
with lib;
let cfg = config.kw; in {
options.kw = {
hexColors = mkOption {
type = types.attrsOf types.str;
};
font = {
name = mkOption {
type = types.str;
default = "Cozette";
};
size = mkOption {
type = types.float;
default = 9.0;
};
size_css = mkOption {
type = types.str;
default = "${toString (cfg.font.size + 3)}px";
};
};
};
}