11.stylix/doc/hm_compat.nix
Matt Sturgeon bdf092d169 doc: use minimal module evals
We don't actually need fully blown NixOS or home-manager configurations
just to read the declared `options`.

Instead, we can directly call `lib.evalModules` to build a minimal
configuration containing only stylix modules.
2025-06-21 20:25:14 -07:00

12 lines
426 B
Nix

{ lib, ... }:
{
# Declare the arbitrarily named __stub attribute to allow modules to evaluate
# 'options.services ? «OPTION»'.
#
# TODO: Replace 'options.services ? «OPTION»' instances with
# 'options ? services.«OPTION»' to remove this __stub workaround.
options.services.__stub = lib.mkSinkUndeclaredOptions { };
# Some modules use home-manager's `osConfig` arg
config._module.args.osConfig = null;
}