summaryrefslogblamecommitdiff
path: root/global/common/modules/font.nix
blob: 476489fae822d9a6160355a794dccaf696cdf08c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                       
                                                  


















                                            
                                                    



         
{ pkgs, lib, ... }: let
  name = {
    type = lib.types.str;
    example = "Terminess Nerd Font";
  };
  size = {
    type = with lib.types; nullOr int;
    default = null;
  };
  packages = {
    type = with lib.types; listOf path;
    example = "[ pkgs.nerd-fonts.terminess-ttf ]";
  };
in {
  options.global.font = {
    sans = {
      size = lib.mkOption size;
      name = lib.mkOption (name // {
        default = "DeepMind Sans";
      });
      packages = lib.mkOption (packages // {
        default = [ pkgs.dm-sans ];
      });
    };

    monospace = {
      size = lib.mkOption size;
      name = lib.mkOption (name // {
        default = "Terminess Nerd Font";
      });
      packages = lib.mkOption (packages // {
        default = [ pkgs.nerd-fonts.terminess-ttf ];
      });
    };
  };
}