mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
15 lines
266 B
Nix
15 lines
266 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) types mkOption;
|
|
in
|
|
{
|
|
options.number = mkOption {
|
|
type = types.submodule {
|
|
freeformType = types.attrsOf (types.either types.int types.int);
|
|
};
|
|
default = {
|
|
int = 42;
|
|
}; # should not emit a warning
|
|
};
|
|
}
|