core/lib/tests/modules/error-mkOption-in-config.nix

13 lines
373 B
Nix
Raw Normal View History

2024-05-01 22:14:04 +00:00
{ lib, ... }:
let
inherit (lib) mkOption;
in
{
2024-06-30 08:16:52 +00:00
wrong1 = mkOption { };
2024-05-01 22:14:04 +00:00
# This is not actually reported separately, so could be omitted from the test
# but it makes the example more realistic.
# Making it parse this _config_ as options would too risky. What if it's not
# options but other values, that abort, throw, diverge, etc?
2024-06-30 08:16:52 +00:00
nest.wrong2 = mkOption { };
2024-05-01 22:14:04 +00:00
}