fonts: remove 'fonts.fontDir.enable' and use 'fonts.packages' (#439)

Remove the obsolete 'fonts.fontDir.enable' option and replace the
'fonts.fonts' option with 'fonts.packages'.

This should fix Stylix for nix-darwin past 58b905ea.

Closes: https://github.com/danth/stylix/issues/435
This commit is contained in:
Bernardo Meurer 2024-06-19 05:30:25 -04:00 committed by GitHub
parent f13c946181
commit 7dcab0711b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,6 @@ let
in {
imports = [ ../fonts.nix ];
config.fonts = lib.mkIf config.stylix.enable {
fontDir.enable = true;
fonts = cfg.packages;
inherit (cfg) packages;
};
}