11.stylix/stylix/darwin/default.nix
Shahar "Dawn" Or 7abe83d1ed fontconfig: set defaultFonts with mkOrder 600
Just for reference:

```nix
mkBefore = mkOrder 500;
defaultOrderPriority = 1000;
mkAfter = mkOrder 1500;
```
2025-07-28 18:08:07 +07:00

44 lines
1 KiB
Nix

{
lib,
config,
...
}:
let
autoload = import ../autoload.nix { inherit lib; } "darwin";
in
{
imports = [
./palette.nix
../fonts.nix
../home-manager-integration.nix
../opacity.nix
../palette.nix
../pixel.nix
../target.nix
../release.nix
../overlays.nix
../ordering.nix
] ++ autoload;
config.warnings =
lib.mkIf
(
config.stylix.enable
&& config.stylix.enableReleaseChecks
&& (config.stylix.release != config.system.darwinRelease)
)
[
''
You are using different Stylix and nix-darwin versions. This is
likely to cause errors and unexpected behavior. It is highly
recommended that you use a version of Stylix that matches your chosen
version of nix-darwin.
If you are willing to accept the risks that come with using
mismatched versions, you may disable this warning by adding
stylix.enableReleaseChecks = false;
to your configuration.
''
];
}