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 = { options = {
${prefix} = { ${prefix} = {
network.wg_subnets.IPv4 = lib.mkOption { network.wg_subnets.IPv4 = lib.mkOption {
type = lib.typesstr; type = lib.types.str;
description = "The IPv6 range that wireguard peers will use"; description = "The IPv6 range that wireguard peers will use";
}; };
network.wg_subnets.IPv6 = lib.mkOption { network.wg_subnets.IPv6 = lib.mkOption {
type = lib.typesstr; type = lib.types.str;
description = "The IPv4 range that wireguard peers will use"; description = "The IPv4 range that wireguard peers will use";
}; };
@ -73,7 +73,7 @@ in {
description = "Enable WireGuard"; description = "Enable WireGuard";
}; };
pubkey = lib.mkOption { pubkey = lib.mkOption {
type = lib.typesnullOr lib.typesstr; type = lib.types.nullOr lib.types.str;
default = null; default = null;
description = "Public key for WireGuard"; description = "Public key for WireGuard";
}; };
@ -90,7 +90,7 @@ in {
type = lib.types.submodule { type = lib.types.submodule {
options = { options = {
public = lib.mkOption { public = lib.mkOption {
type = lib.typesnullOr lib.typesstr; type = lib.types.nullOr lib.types.str;
default = null; default = null;
description = "Public IPv4 address"; description = "Public IPv4 address";
}; };
@ -99,15 +99,15 @@ in {
description = "Wireguard-internal IPv4 address"; description = "Wireguard-internal IPv4 address";
}; };
}; };
default = {};
}; };
description = "IPv4 configuration"; description = "IPv4 configuration";
default = {};
}; };
v6 = lib.mkOption { v6 = lib.mkOption {
type = lib.types.submodule { type = lib.types.submodule {
options = { options = {
public = lib.mkOption { public = lib.mkOption {
type = lib.typesnullOr lib.typesstr; type = lib.types.nullOr lib.types.str;
description = "Public IPv6 address"; description = "Public IPv6 address";
}; };
internal = lib.mkOption { internal = lib.mkOption {
@ -125,10 +125,8 @@ in {
description = "All hosts in this network that this config should be aware of"; description = "All hosts in this network that this config should be aware of";
}; };
}; };
config = { ${prefix}.network = {
${prefix}.network = { inherit hosts wg_subnets;
inherit hosts wg_subnets;
};
}; };
}; };
} }