danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.2k stars 155 forks source link

How to set stylix.fonts.monospace.package to a nerdfont override #166

Closed dvogeldev closed 1 year ago

dvogeldev commented 1 year ago

I have tried the setting (nerdfonts.override { fonts = [ "FiraCode" ]; };

also just using the setting stylix.fonts.monospace.name = "FiraCode Nerd Font";

How/Can I do this?

Thank you for your time.

dvogeldev commented 1 year ago

For anyone else trying to figure this out, answer is... stylix.fonts.monospace.package = pkgs.nerdfonts.override { fonts = [ "FiraCode" ]; };