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
13 lines
500 B
Nix
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;
|
|
}
|