{ realPkgs, ... }:

{
  fonts.fontconfig.enable = true;

  # Use `realPkgs` here since the creation of the fontconfig cache relies on the
  # `fc-cache` binary and actual (non-stubbed) fonts.
  test.unstubs = [ (_self: _super: { inherit (realPkgs) fontconfig; }) ];
  home.packages = [
    realPkgs.comic-relief
    realPkgs.unifont
  ];

  nmt.script = ''
    assertDirectoryNotEmpty home-path/lib/fontconfig/cache
  '';
}
