From c9f1a9a36262295a4effc7a2a36412608fb0f7d3 Mon Sep 17 00:00:00 2001 From: Lyn Date: Wed, 13 Nov 2024 20:04:25 +0100 Subject: [PATCH] fix typos --- hosts/network.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/hosts/network.nix b/hosts/network.nix index b32ff4a..9892c3d 100644 --- a/hosts/network.nix +++ b/hosts/network.nix @@ -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; }; }; }