11.stylix/doc/eval_compat.nix
Matt Sturgeon 100b968012 doc: ensure config is not used in option docs
With a few exceptions for `lib.stylix` functions.

Once these exceptions are removed, we will have solved the issue with
NixOS's documentation.nixos.includeAllModules option.

See https://github.com/nix-community/stylix/issues/98
2025-06-21 20:25:14 -07:00

13 lines
500 B
Nix

{ lib, ... }:
{
# Declare the arbitrarily named __stub attribute to allow modules to evaluate
# 'options.programs ? «OPTION»'.
#
# TODO: Replace 'options.programs ? «OPTION»' instances with
# 'options ? programs.«OPTION»' to remove this __stub workaround.
options.programs.__stub = lib.mkSinkUndeclaredOptions { };
# Third-party options are not included in the module eval,
# so disable checking options definitions have matching declarations
config._module.check = false;
}