fonts: Update as per upstream

I'll just say it right here. The 'fonts.fonts' thing really bugged me
when I started out with NixOS and still annoyed me after. Its nice to
see it made nicer, even if just for posterity.
This commit is contained in:
Payas Relekar 2023-07-27 21:05:32 +05:30
parent a1ca0a64b9
commit 7113f7b6ae

View file

@ -2,9 +2,9 @@
{ {
fonts = { fonts = {
enableDefaultFonts = true; enableDefaultPackages = true;
fontDir.enable = true; fontDir.enable = true;
fonts = with pkgs; [ packages = with pkgs; [
work-sans work-sans
ibm-plex ibm-plex
jetbrains-mono jetbrains-mono
@ -12,6 +12,9 @@
fira-code fira-code
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
]; ];
fontconfig.defaultFonts = { monospace = [ "JetBrains Mono" ]; }; fontconfig = {
enable = true;
defaultFonts = { monospace = [ "JetBrains Mono" ]; };
};
}; };
} }