From f29847b7dc23a3e98f5091eee0fda2233abd4663 Mon Sep 17 00:00:00 2001 From: Lyn Date: Tue, 12 Nov 2024 03:21:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A5=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/network.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hosts/network.nix b/hosts/network.nix index bc17723..40a492f 100644 --- a/hosts/network.nix +++ b/hosts/network.nix @@ -64,27 +64,27 @@ filteredHosts; in { #create first options because apparently you have to do that in Nix - lyn.network.IPv6.peerlist = lib.mkOption { + config.lyn.network.IPv6.peerlist = lib.mkOption { type = lib.types.list; description = "List of all IPv6 Wireguard peers"; }; - lyn.network.IPv4.peerlist = lib.mkOption { + config.lyn.network.IPv4.peerlist = lib.mkOption { type = lib.types.list; description = "List of all IPv4 Wireguard peers"; }; - lyn.network.IPv6.wg_subnet = lib.mkOption { + config.lyn.network.IPv6.wg_subnet = lib.mkOption { type = string; description = "The IPv6 range that the peers will use"; }; - lyn.network.IPv4.wg_subnet = lib.mkOption { + config.lyn.network.IPv4.wg_subnet = lib.mkOption { type = string; description = "The IPv4 range that the peers will use"; }; - lyn.network.IPv6.hosts = lib.mkOption { + config.lyn.network.IPv6.hosts = lib.mkOption { type = lib.types.set; description = "All hosts in this network that this config should be aware of"; }; - ${prefix}.network = { + config.${prefix}.network = { IPv4 = { wg_subnet = wg_subnets.v4; peerlist = buildPeerlist "v4" hosts;