blob: 5a9db862e584a6ef2958f71ea2c0190b1b312077 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ 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;
};
};
}
|