When I used 23.11 I could specify a local font directory like this
fonts.packages = [ "/persistent/fonts" ];
But this seems to not work anymore when I tried latest unstable
error: builder for '/nix/store/3gkdprjb871g512y9c84lgy1is5miv9w-X11-fonts.drv' failed with exit code 1;
last 1 log lines:
> find: '/persistent/fonts': No such file or directory
For full logs, run 'nix log /nix/store/3gkdprjb871g512y9c84lgy1is5miv9w-X11-fonts.drv'.
error: 1 dependencies of derivation '/nix/store/l3pp0m8v0q52qic817xg20ld1p7rby8s-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/im96gq0050kwvx3izb4cv4dkx4yzlnd6-xserver.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iajqn75sb3f98al6rj53jma1345pbbrp-nixos-system-nixhpix-24.05.20240507.b211b39.drv' failed to build
The usage I have for this is to be able to specify a persistent directory in which I keep the fonts which I have paid for. Therefore, I do not want to package them as part of a potentially public config.
I tried to look at the latest changes in the font related modules in nixpkgs, but I was unable to find any obvious changes that would affect this error added in the last 6 months.
Should I report this as a regression in nixpkgs and does anybody know a nice alternative/workaround for my use case?