mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
lib/modules: Test optionless module errors from #131205
This commit is contained in:
parent
54e6759732
commit
afb1a2e376
4 changed files with 33 additions and 0 deletions
12
lib/tests/modules/error-mkOption-in-submodule-config.nix
Normal file
12
lib/tests/modules/error-mkOption-in-submodule-config.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib) mkOption;
|
||||
in
|
||||
{
|
||||
options.sub = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
wrong2 = mkOption {};
|
||||
};
|
||||
default = {};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue