{
  config,
  lib,
  pkgs,
  ...
}: {
  options.dotfiles.inputs.home-manager.fonts.fontconfig.enable =
    lib.dotfiles.mkEnableOption;

  config =
    lib.mkIf
    config.dotfiles.inputs.home-manager.fonts.fontconfig.enable
    {
      fonts.fontconfig = {
        defaultFonts = {
          monospace = ["FiraCodeNerdFont"];
          sansSerif = ["IBMPlexSans"];
          serif = ["Crimson"];
        };

        enable = true;
      };

      home.packages = with pkgs; [
        (nerdfonts.override {fonts = ["FiraCode"];})
        crimson
        ibm-plex
      ];
    };
}
