Files
nixpkgs/lib/tests/modules/freeform-attrsof-either.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
266 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{ 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
};
}