fixed types typo
This commit is contained in:
parent
f386e19d29
commit
36ad39d4e5
1 changed files with 6 additions and 6 deletions
|
@ -52,17 +52,17 @@ in {
|
|||
options = {
|
||||
${prefix} = {
|
||||
network.wg_subnets.IPv4 = lib.mkOption {
|
||||
type = types.str;
|
||||
type = lib.typesstr;
|
||||
description = "The IPv6 range that wireguard peers will use";
|
||||
};
|
||||
network.wg_subnets.IPv6 = lib.mkOption {
|
||||
type = types.str;
|
||||
type = lib.typesstr;
|
||||
description = "The IPv4 range that wireguard peers will use";
|
||||
};
|
||||
|
||||
# defining the entire hosts part as a module
|
||||
network.hosts = lib.mkOption {
|
||||
type = types.attrsOf (lib.types.submodule {
|
||||
type = lib.typesattrsOf (lib.types.submodule {
|
||||
options = {
|
||||
wg = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
|
@ -73,7 +73,7 @@ in {
|
|||
description = "Enable WireGuard";
|
||||
};
|
||||
pubkey = lib.mkOption {
|
||||
type = types.nullOr types.str;
|
||||
type = lib.typesnullOr lib.typesstr;
|
||||
default = null;
|
||||
description = "Public key for WireGuard";
|
||||
};
|
||||
|
@ -90,7 +90,7 @@ in {
|
|||
type = lib.types.submodule {
|
||||
options = {
|
||||
public = lib.mkOption {
|
||||
type = types.nullOr types.str;
|
||||
type = lib.typesnullOr lib.typesstr;
|
||||
default = null;
|
||||
description = "Public IPv4 address";
|
||||
};
|
||||
|
@ -107,7 +107,7 @@ in {
|
|||
type = lib.types.submodule {
|
||||
options = {
|
||||
public = lib.mkOption {
|
||||
type = types.nullOr types.str;
|
||||
type = lib.typesnullOr lib.typesstr;
|
||||
description = "Public IPv6 address";
|
||||
};
|
||||
internal = lib.mkOption {
|
||||
|
|
Loading…
Reference in a new issue