mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 00:16:33 +01:00
This change introduces the suggesting of possible valid option names for a given invalid option, based on the keys of said invalid option's parent attrset. That is, `foo.bar.baz` will only be suggested keys from `foo.bar`, while `(config).baz` will only be suggested keys from the toplevel.
18 lines
253 B
Nix
18 lines
253 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
options.set = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
example = true;
|
|
type = lib.types.bool;
|
|
description = ''
|
|
Some descriptive text
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = {
|
|
set.ena = true;
|
|
};
|
|
}
|