11.stylix/modules/fontconfig/fontconfig.nix
NAHO 16df6b8448
treewide: rename mkTarget's configElements and extraOptions options
Rename mkTarget's 'configElements' argument to 'config' and
'extraOptions' to 'options' to provide a more transparent interface with
the underlying Nixpkgs module system.
2025-12-10 14:48:20 +01:00

17 lines
346 B
Nix

{ mkTarget }:
{ lib, ... }:
mkTarget {
name = "fontconfig";
humanName = "Fontconfig";
config =
{ listTargetIndex, fonts }:
{
fonts.fontconfig.defaultFonts = lib.genAttrs [
"monospace"
"serif"
"sansSerif"
"emoji"
] (family: lib.mkOrder listTargetIndex [ fonts.${family}.name ]);
};
}