aboutsummaryrefslogtreecommitdiffstats
path: root/modules/fonts/default.nix
blob: 2d13d52ca70529556d1b913e74ba72f6e1a870d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Fonts - Font configuration (Fira Code Nerd Font)
{
  lib,
  config,
  pkgs,
  ...
}:
{
  options.fonts = {
    normal = lib.mkOption {
      type = lib.types.str;
      description = "Default normal font name.";
    };

    bold = lib.mkOption {
      type = lib.types.str;
      description = "Default bold font name.";
      default = config.fonts.normal;
    };

    italic = lib.mkOption {
      type = lib.types.str;
      description = "Default italic font name.";
      default = config.fonts.normal;
    };

    size = lib.mkOption {
      type = lib.types.int;
      description = "Default font size.";
      default = 18;
    };
  };

  config = {
    fonts.normal = lib.mkDefault "Fira Code Nerd Font";

    home.packages = with pkgs; [
      nerd-fonts.fira-code
    ];
  };
}