|
|
|
@ -31,18 +31,22 @@ let |
|
|
|
|
default = null; |
|
|
|
|
example = "rVXs/Ni9tu3oDBLS4hOyAUAa1qTWVA3loR8eL20os3I="; |
|
|
|
|
type = with types; nullOr str; |
|
|
|
|
description = ''base64 preshared key generated by wg genpsk. Optional, |
|
|
|
|
and may be omitted. This option adds an additional layer of |
|
|
|
|
symmetric-key cryptography to be mixed into the already existing |
|
|
|
|
public-key cryptography, for post-quantum resistance.''; |
|
|
|
|
description = '' |
|
|
|
|
base64 preshared key generated by wg genpsk. Optional, |
|
|
|
|
and may be omitted. This option adds an additional layer of |
|
|
|
|
symmetric-key cryptography to be mixed into the already existing |
|
|
|
|
public-key cryptography, for post-quantum resistance. |
|
|
|
|
''; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
listenPort = mkOption { |
|
|
|
|
default = null; |
|
|
|
|
type = with types; nullOr int; |
|
|
|
|
example = 51820; |
|
|
|
|
description = ''16-bit port for listening. Optional; if not specified, |
|
|
|
|
automatically generated based on interface name.''; |
|
|
|
|
description = '' |
|
|
|
|
16-bit port for listening. Optional; if not specified, |
|
|
|
|
automatically generated based on interface name. |
|
|
|
|
''; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
preSetup = mkOption { |
|
|
|
@ -51,8 +55,9 @@ let |
|
|
|
|
'']; |
|
|
|
|
default = []; |
|
|
|
|
type = with types; listOf str; |
|
|
|
|
description = ''A list of commands called at the start of the interface |
|
|
|
|
setup.''; |
|
|
|
|
description = '' |
|
|
|
|
A list of commands called at the start of the interface setup. |
|
|
|
|
''; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
postSetup = mkOption { |
|
|
|
|