@@ -17,39 +17,44 @@ in
1717 options = {
1818
1919 services.memcached = {
20−
2120 enable = mkEnableOption "Memcached";
2221
2322 user = mkOption {
23+ type = types.str;
2424 default = "memcached";
2525 description = "The user to run Memcached as";
2626 };
2727
2828 listen = mkOption {
29+ type = types.str;
2930 default = "127.0.0.1";
30− description = "The IP address to bind to";
31+ description = "The IP address to bind to.";
3132 };
3233
3334 port = mkOption {
35+ type = types.port;
3436 default = 11211;
35− description = "The port to bind to";
37+ description = "The port to bind to.";
3638 };
3739
3840 enableUnixSocket = mkEnableOption "unix socket at /run/memcached/memcached.sock";
3941
4042 maxMemory = mkOption {
43+ type = types.ints.unsigned;
4144 default = 64;
4245 description = "The maximum amount of memory to use for storage, in megabytes.";
4346 };
4447
4548 maxConnections = mkOption {
49+ type = types.ints.unsigned;
4650 default = 1024;
47− description = "The maximum number of simultaneous connections";
51+ description = "The maximum number of simultaneous connections.";
4852 };
4953
5054 extraOptions = mkOption {
55+ type = types.listOf types.str;
5156 default = [];
52− description = "A list of extra options that will be added as a suffix when running memcached";
57+ description = "A list of extra options that will be added as a suffix when running memcached.";
5358 };
5459 };
5560