From 36ad39d4e5dbf9f40625afe29f0a5598f49a26df Mon Sep 17 00:00:00 2001 From: Lyn Date: Wed, 13 Nov 2024 19:20:56 +0100 Subject: [PATCH] fixed types typo --- hosts/network.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/network.nix b/hosts/network.nix index 7db1d32..edbd270 100644 --- a/hosts/network.nix +++ b/hosts/network.nix @@ -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 {