nixpkgs/lib/tests/modules/freeform-deprecated-malicous.nix
Wolfgang Walther 91a8fee3aa
treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00

35 lines
642 B
Nix

{ lib, ... }:
let
inherit (lib) types mkOption;
in
{
options.either = mkOption {
type = types.submodule {
freeformType = (types.either types.int types.int);
};
};
options.eitherBehindNullor = mkOption {
type = types.submodule {
freeformType = types.nullOr (types.either types.int types.int);
};
};
options.oneOf = mkOption {
type = types.submodule {
freeformType = (
types.oneOf [
types.int
types.int
]
);
};
};
options.number = mkOption {
type = types.submodule {
freeformType = (types.number); # either int float
};
};
}