{ config, lib, pkgs, ... }: let cfg = config.sils.font; in { options.sils.font.enable = lib.mkEnableOption "font config"; config = lib.mkIf cfg.enable { fonts = { packages = with pkgs; [ nerd-fonts.fira-code nerd-fonts.droid-sans-mono nerd-fonts.lilex nerd-fonts.symbols-only ]; fontconfig = { defaultFonts = { serif = ["Lilex"]; sansSerif = ["Droid Sans Mono"]; monospace = ["FiraCode"]; }; }; fontDir.enable = true; }; }; }