From 7113f7b6aeecdfe687eb19073d26dfd12e176ecc Mon Sep 17 00:00:00 2001 From: Payas Relekar Date: Thu, 27 Jul 2023 21:05:32 +0530 Subject: [PATCH] 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. --- modules/fonts.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/fonts.nix b/modules/fonts.nix index 5514376..3ecfaa6 100644 --- a/modules/fonts.nix +++ b/modules/fonts.nix @@ -2,9 +2,9 @@ { fonts = { - enableDefaultFonts = true; + enableDefaultPackages = true; fontDir.enable = true; - fonts = with pkgs; [ + packages = with pkgs; [ work-sans ibm-plex jetbrains-mono @@ -12,6 +12,9 @@ fira-code emacs-all-the-icons-fonts ]; - fontconfig.defaultFonts = { monospace = [ "JetBrains Mono" ]; }; + fontconfig = { + enable = true; + defaultFonts = { monospace = [ "JetBrains Mono" ]; }; + }; }; }