1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/misc/fontconfig/single-font-package.nix
2025-10-28 08:55:38 -05:00

14 lines
395 B
Nix

{ 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 ];
nmt.script = ''
assertDirectoryNotEmpty home-path/lib/fontconfig/cache
'';
}