From 190d4e37f64f66708472cadd7ea8a55f5a2e74f9 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sun, 3 Jul 2022 15:26:42 +0200 Subject: [PATCH] Move fonts to system config --- nixos/configuration.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 3fbf08cb..9347f013 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -190,8 +190,24 @@ fonts = { enableDefaultFonts = true; # Some default fonts for unicode coverage - fontDir.enable = true; - # fonts = []; # Font packages go here, mostly done in HomeManager though + fontDir.enable = true; # Puts fonts to /run/current-system/sw/share/X11/fonts + + # Font packages go here, don't do this with HomeManager as I need the fonts in the fontdir for flatpak apps + fonts = with pkgs; [ + victor-mono + source-code-pro + source-sans-pro + source-serif-pro + (pkgs.nerdfonts.override { fonts = [ "VictorMono" ]; }) + source-han-mono + source-han-sans + source-han-serif + wqy_zenhei + wqy_microhei + # jetbrains-mono + # etBook + # overpass + ]; # TODO: Check if this works fontconfig = {