Skip to content

Commit

Permalink
fontconfig: make fonts accessible when in NixOS module
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Feb 14, 2019
1 parent 1c32456 commit 5cf9a2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 5cf9a2d

Please sign in to comment.