From 799a90ecfaa717bc617ffad19383d1cddd4c99ad Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Thu, 21 Dec 2017 12:19:07 +0100 Subject: [PATCH] fontconfig: make fonts accessible when in NixOS module --- nixos/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index 5dec943b9..2134175bc 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -12,6 +12,12 @@ let config = { submoduleSupport.enable = true; submoduleSupport.externalPackageInstall = cfg.useUserPackages; + + # The per-user directory inside /etc/profiles is not known by + # fontconfig by default. + fonts.fontconfig.enableProfileFonts = + cfg.useUserPackages && config.fonts.fontconfig.enable; + home.username = config.users.users.${name}.name; home.homeDirectory = config.users.users.${name}.home; };