Global font configuration

#| file: modules/nixos/fonts.nix
{ lib, pkgs, ... }:
{
  options.mjm.fonts = {
    <<options>>
  };
}

This module introduces options that are used to configure fonts to be used on my systems. The module does not do anything to configure the fonts on the system on its own. Instead, other modules that are configuring particular things can reference these options so that they are consistent about which fonts they use.

monospace.family = lib.mkOption {
  type = lib.types.str;
  default = "PragmataPro Liga";
};
monospace.package = lib.mkOption {
  type = lib.types.package;
  default = pkgs.pragmata-pro;
};

These options configure the default monospace font to use. This is relevant for things like terminals or editors.

system.family = lib.mkOption {
  type = lib.types.str;
  default = "Ubuntu Sans";
};
system.package = lib.mkOption {
  type = lib.types.package;
  default = pkgs.ubuntu-sans;
};

These options configure the default font to use for system UI.

Proxy Information
Original URL
gemini://midna.dev/homelab/modules/nixos/fonts/
Status Code
Success (20)
Meta
text/gemini;lang=en-US
Capsule Response Time
25.136794 milliseconds
Gemini-to-HTML Time
0.110188 milliseconds

This content has been proxied by September (UNKNO).