fix typos

This commit is contained in:
Lyn 2024-11-13 20:04:25 +01:00
parent 6b1b4a74ad
commit c9f1a9a362

View file

@ -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;
};
};
}