fix typos
This commit is contained in:
parent
6b1b4a74ad
commit
c9f1a9a362
1 changed files with 8 additions and 10 deletions
|
@ -52,11 +52,11 @@ in {
|
|||
options = {
|
||||
${prefix} = {
|
||||
network.wg_subnets.IPv4 = lib.mkOption {
|
||||
type = lib.typesstr;
|
||||
type = lib.types.str;
|
||||
description = "The IPv6 range that wireguard peers will use";
|
||||
};
|
||||
network.wg_subnets.IPv6 = lib.mkOption {
|
||||
type = lib.typesstr;
|
||||
type = lib.types.str;
|
||||
description = "The IPv4 range that wireguard peers will use";
|
||||
};
|
||||
|
||||
|
@ -73,7 +73,7 @@ in {
|
|||
description = "Enable WireGuard";
|
||||
};
|
||||
pubkey = lib.mkOption {
|
||||
type = lib.typesnullOr lib.typesstr;
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Public key for WireGuard";
|
||||
};
|
||||
|
@ -90,7 +90,7 @@ in {
|
|||
type = lib.types.submodule {
|
||||
options = {
|
||||
public = lib.mkOption {
|
||||
type = lib.typesnullOr lib.typesstr;
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Public IPv4 address";
|
||||
};
|
||||
|
@ -99,15 +99,15 @@ in {
|
|||
description = "Wireguard-internal IPv4 address";
|
||||
};
|
||||
};
|
||||
default = {};
|
||||
};
|
||||
description = "IPv4 configuration";
|
||||
default = {};
|
||||
};
|
||||
v6 = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
options = {
|
||||
public = lib.mkOption {
|
||||
type = lib.typesnullOr lib.typesstr;
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
description = "Public IPv6 address";
|
||||
};
|
||||
internal = lib.mkOption {
|
||||
|
@ -125,10 +125,8 @@ in {
|
|||
description = "All hosts in this network that this config should be aware of";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
${prefix}.network = {
|
||||
inherit hosts wg_subnets;
|
||||
};
|
||||
${prefix}.network = {
|
||||
inherit hosts wg_subnets;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue