mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
fontconfig: make fonts accessible when in NixOS module
This commit is contained in:
parent
ef168979bf
commit
799a90ecfa
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,12 @@ let
|
||||||
config = {
|
config = {
|
||||||
submoduleSupport.enable = true;
|
submoduleSupport.enable = true;
|
||||||
submoduleSupport.externalPackageInstall = cfg.useUserPackages;
|
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.username = config.users.users.${name}.name;
|
||||||
home.homeDirectory = config.users.users.${name}.home;
|
home.homeDirectory = config.users.users.${name}.home;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue