nixos/gnunet: Add types to the options
This commit is contained in:
parent
b9d274b89d
commit
d49737836a
|
@ -42,6 +42,7 @@ in
|
||||||
services.gnunet = {
|
services.gnunet = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to run the GNUnet daemon. GNUnet is GNU's anonymous
|
Whether to run the GNUnet daemon. GNUnet is GNU's anonymous
|
||||||
|
@ -51,6 +52,7 @@ in
|
||||||
|
|
||||||
fileSharing = {
|
fileSharing = {
|
||||||
quota = mkOption {
|
quota = mkOption {
|
||||||
|
type = types.int;
|
||||||
default = 1024;
|
default = 1024;
|
||||||
description = ''
|
description = ''
|
||||||
Maximum file system usage (in MiB) for file sharing.
|
Maximum file system usage (in MiB) for file sharing.
|
||||||
|
@ -60,6 +62,7 @@ in
|
||||||
|
|
||||||
udp = {
|
udp = {
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
default = 2086; # assigned by IANA
|
default = 2086; # assigned by IANA
|
||||||
description = ''
|
description = ''
|
||||||
The UDP port for use by GNUnet.
|
The UDP port for use by GNUnet.
|
||||||
|
@ -69,6 +72,7 @@ in
|
||||||
|
|
||||||
tcp = {
|
tcp = {
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
|
type = types.port;
|
||||||
default = 2086; # assigned by IANA
|
default = 2086; # assigned by IANA
|
||||||
description = ''
|
description = ''
|
||||||
The TCP port for use by GNUnet.
|
The TCP port for use by GNUnet.
|
||||||
|
@ -78,6 +82,7 @@ in
|
||||||
|
|
||||||
load = {
|
load = {
|
||||||
maxNetDownBandwidth = mkOption {
|
maxNetDownBandwidth = mkOption {
|
||||||
|
type = types.int;
|
||||||
default = 50000;
|
default = 50000;
|
||||||
description = ''
|
description = ''
|
||||||
Maximum bandwidth usage (in bits per second) for GNUnet
|
Maximum bandwidth usage (in bits per second) for GNUnet
|
||||||
|
@ -86,6 +91,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
maxNetUpBandwidth = mkOption {
|
maxNetUpBandwidth = mkOption {
|
||||||
|
type = types.int;
|
||||||
default = 50000;
|
default = 50000;
|
||||||
description = ''
|
description = ''
|
||||||
Maximum bandwidth usage (in bits per second) for GNUnet
|
Maximum bandwidth usage (in bits per second) for GNUnet
|
||||||
|
@ -94,6 +100,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
hardNetUpBandwidth = mkOption {
|
hardNetUpBandwidth = mkOption {
|
||||||
|
type = types.int;
|
||||||
default = 0;
|
default = 0;
|
||||||
description = ''
|
description = ''
|
||||||
Hard bandwidth limit (in bits per second) when uploading
|
Hard bandwidth limit (in bits per second) when uploading
|
||||||
|
@ -111,6 +118,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
extraOptions = mkOption {
|
extraOptions = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
Additional options that will be copied verbatim in `gnunet.conf'.
|
Additional options that will be copied verbatim in `gnunet.conf'.
|
||||||
|
|
Loading…
Reference in New Issue