Files
nixpkgs/lib/tests/modules/error-typo-submodule.nix
2025-10-28 15:22:17 +01:00

29 lines
513 B
Nix

{ lib, ... }:
{
options.services = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule {
options = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
port = lib.mkOption {
default = 8080;
type = lib.types.int;
};
};
}
);
default = { };
};
config = {
services.myservice = {
# Typo: "prot" instead of "port"
prot = 9000;
};
};
}