summary refs log tree commit diff
path: root/nixos/modules/services/databases/memcached.nix
diff options
context:
space:
mode:
authorKevin Cox <kevincox@kevincox.ca>2021-01-14 17:04:54 -0500
committerGitHub <noreply@github.com>2021-01-14 17:04:54 -0500
commit5666f34b28568b3f8b978a106029faba3ea9a531 (patch)
treee8a815b70ae9c81e6702e5f3284308a98c539475 /nixos/modules/services/databases/memcached.nix
parent3d9a14f76cfa7bc2eeed35563b618f672f7fdff2 (diff)
parent55127e16af5f7b9c4c213578291e479ec37a7a5f (diff)
downloadnixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.tar
nixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.tar.gz
nixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.tar.bz2
nixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.tar.lz
nixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.tar.xz
nixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.tar.zst
nixpkgs-5666f34b28568b3f8b978a106029faba3ea9a531.zip
Merge pull request #91813 from Mic92/types1
nixos/*: Add types to the database module options
Diffstat (limited to 'nixos/modules/services/databases/memcached.nix')
-rw-r--r--nixos/modules/services/databases/memcached.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/nixos/modules/services/databases/memcached.nix b/nixos/modules/services/databases/memcached.nix
index f54bb6cc9b1..ca7b20eb049 100644
--- a/nixos/modules/services/databases/memcached.nix
+++ b/nixos/modules/services/databases/memcached.nix
@@ -17,39 +17,44 @@ in
   options = {
 
     services.memcached = {
-
       enable = mkEnableOption "Memcached";
 
       user = mkOption {
+        type = types.str;
         default = "memcached";
         description = "The user to run Memcached as";
       };
 
       listen = mkOption {
+        type = types.str;
         default = "127.0.0.1";
-        description = "The IP address to bind to";
+        description = "The IP address to bind to.";
       };
 
       port = mkOption {
+        type = types.port;
         default = 11211;
-        description = "The port to bind to";
+        description = "The port to bind to.";
       };
 
       enableUnixSocket = mkEnableOption "unix socket at /run/memcached/memcached.sock";
 
       maxMemory = mkOption {
+        type = types.ints.unsigned;
         default = 64;
         description = "The maximum amount of memory to use for storage, in megabytes.";
       };
 
       maxConnections = mkOption {
+        type = types.ints.unsigned;
         default = 1024;
-        description = "The maximum number of simultaneous connections";
+        description = "The maximum number of simultaneous connections.";
       };
 
       extraOptions = mkOption {
+        type = types.listOf types.str;
         default = [];
-        description = "A list of extra options that will be added as a suffix when running memcached";
+        description = "A list of extra options that will be added as a suffix when running memcached.";
       };
     };