mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
28 lines
525 B
Nix
28 lines
525 B
Nix
{
|
|
config,
|
|
lib,
|
|
options,
|
|
...
|
|
}:
|
|
{
|
|
options = {
|
|
theOption = lib.mkOption {
|
|
type = lib.types.optionDeclaration;
|
|
};
|
|
anOption = config.theOption;
|
|
aBadOptionDef = lib.mkOption {
|
|
type = lib.types.optionDeclaration;
|
|
description = ''
|
|
This option is perfectly fine, but will have a bad definition.
|
|
'';
|
|
};
|
|
};
|
|
config = {
|
|
theOption = lib.mkOption {
|
|
type = lib.types.int;
|
|
};
|
|
anOption = 10;
|
|
aBadOptionDef = options.theOption; # Not a declaration
|
|
};
|
|
}
|