1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
{ lib, ... }:
{
options.services.myService = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to enable myService";
};
port = lib.mkOption {
type = lib.types.port;
default = 8080;
description = "Port number the service will listen on";
};
maxConnections = lib.mkOption {
type = lib.types.int;
default = 100;
description = "Maximum number of simultaneous connections";
};
};
}