about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorLouis Bettens <louis@bettens.info>2020-01-04 10:41:33 +0100
committerLouis Bettens <louis@bettens.info>2020-01-05 00:07:50 +0100
commitd49737836a4f2f74212552b404cf7e97bbd976a4 (patch)
tree1f90d37f0c1bd6e66848b5aa17fb949a9e3c5c0b /nixos
parentb9d274b89d389a35325069bcc6a78d7c482c80fc (diff)
downloadnixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.tar
nixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.tar.gz
nixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.tar.bz2
nixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.tar.lz
nixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.tar.xz
nixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.tar.zst
nixlib-d49737836a4f2f74212552b404cf7e97bbd976a4.zip
nixos/gnunet: Add types to the options
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/gnunet.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/gnunet.nix b/nixos/modules/services/networking/gnunet.nix
index 178a832c166e..69d4ed047756 100644
--- a/nixos/modules/services/networking/gnunet.nix
+++ b/nixos/modules/services/networking/gnunet.nix
@@ -42,6 +42,7 @@ in
     services.gnunet = {
 
       enable = mkOption {
+        type = types.bool;
         default = false;
         description = ''
           Whether to run the GNUnet daemon.  GNUnet is GNU's anonymous
@@ -51,6 +52,7 @@ in
 
       fileSharing = {
         quota = mkOption {
+          type = types.int;
           default = 1024;
           description = ''
             Maximum file system usage (in MiB) for file sharing.
@@ -60,6 +62,7 @@ in
 
       udp = {
         port = mkOption {
+          type = types.port;
           default = 2086;  # assigned by IANA
           description = ''
             The UDP port for use by GNUnet.
@@ -69,6 +72,7 @@ in
 
       tcp = {
         port = mkOption {
+          type = types.port;
           default = 2086;  # assigned by IANA
           description = ''
             The TCP port for use by GNUnet.
@@ -78,6 +82,7 @@ in
 
       load = {
         maxNetDownBandwidth = mkOption {
+          type = types.int;
           default = 50000;
           description = ''
             Maximum bandwidth usage (in bits per second) for GNUnet
@@ -86,6 +91,7 @@ in
         };
 
         maxNetUpBandwidth = mkOption {
+          type = types.int;
           default = 50000;
           description = ''
             Maximum bandwidth usage (in bits per second) for GNUnet
@@ -94,6 +100,7 @@ in
         };
 
         hardNetUpBandwidth = mkOption {
+          type = types.int;
           default = 0;
           description = ''
             Hard bandwidth limit (in bits per second) when uploading
@@ -111,6 +118,7 @@ in
       };
 
       extraOptions = mkOption {
+        type = types.lines;
         default = "";
         description = ''
           Additional options that will be copied verbatim in `gnunet.conf'.