fontconfig: make fonts accessible when in NixOS module
(cherry picked from commit 799a90ecfa
)
This commit is contained in:
parent
2bdaf4ae98
commit
afd2d0fb84
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue