about summary refs log tree commit diff
path: root/nixpkgs/lib/tests/modules/error-mkOption-in-config.nix
blob: 2d78cd8db8baca3af81cbab56046cb013d866965 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ lib, ... }:
let
  inherit (lib) mkOption;
in
{
  wrong1 = mkOption {
  };
  # 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?
  nest.wrong2 = mkOption {
  };
}