fixed types typo

This commit is contained in:
Lyn 2024-11-13 19:20:56 +01:00
parent f386e19d29
commit 36ad39d4e5

View file

@ -52,17 +52,17 @@ in {
options = { options = {
${prefix} = { ${prefix} = {
network.wg_subnets.IPv4 = lib.mkOption { network.wg_subnets.IPv4 = lib.mkOption {
type = types.str; type = lib.typesstr;
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 = types.str; type = lib.typesstr;
description = "The IPv4 range that wireguard peers will use"; description = "The IPv4 range that wireguard peers will use";
}; };
# defining the entire hosts part as a module # defining the entire hosts part as a module
network.hosts = lib.mkOption { network.hosts = lib.mkOption {
type = types.attrsOf (lib.types.submodule { type = lib.typesattrsOf (lib.types.submodule {
options = { options = {
wg = lib.mkOption { wg = lib.mkOption {
type = lib.types.submodule { type = lib.types.submodule {
@ -73,7 +73,7 @@ in {
description = "Enable WireGuard"; description = "Enable WireGuard";
}; };
pubkey = lib.mkOption { pubkey = lib.mkOption {
type = types.nullOr types.str; type = lib.typesnullOr lib.typesstr;
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 = types.nullOr types.str; type = lib.typesnullOr lib.typesstr;
default = null; default = null;
description = "Public IPv4 address"; description = "Public IPv4 address";
}; };
@ -107,7 +107,7 @@ in {
type = lib.types.submodule { type = lib.types.submodule {
options = { options = {
public = lib.mkOption { public = lib.mkOption {
type = types.nullOr types.str; type = lib.typesnullOr lib.typesstr;
description = "Public IPv6 address"; description = "Public IPv6 address";
}; };
internal = lib.mkOption { internal = lib.mkOption {