nixos/gnunet: Add types to the options

Changed files
+8
nixos
modules
services
networking
+8
nixos/modules/services/networking/gnunet.nix
···
services.gnunet = {
enable = mkOption {
+
type = types.bool;
default = false;
description = ''
Whether to run the GNUnet daemon. GNUnet is GNU's anonymous
···
fileSharing = {
quota = mkOption {
+
type = types.int;
default = 1024;
description = ''
Maximum file system usage (in MiB) for file sharing.
···
udp = {
port = mkOption {
+
type = types.port;
default = 2086; # assigned by IANA
description = ''
The UDP port for use by GNUnet.
···
tcp = {
port = mkOption {
+
type = types.port;
default = 2086; # assigned by IANA
description = ''
The TCP port for use by GNUnet.
···
load = {
maxNetDownBandwidth = mkOption {
+
type = types.int;
default = 50000;
description = ''
Maximum bandwidth usage (in bits per second) for GNUnet
···
};
maxNetUpBandwidth = mkOption {
+
type = types.int;
default = 50000;
description = ''
Maximum bandwidth usage (in bits per second) for GNUnet
···
};
hardNetUpBandwidth = mkOption {
+
type = types.int;
default = 0;
description = ''
Hard bandwidth limit (in bits per second) when uploading
···
};
extraOptions = mkOption {
+
type = types.lines;
default = "";
description = ''
Additional options that will be copied verbatim in `gnunet.conf'.