From 65726d62c0c510c5d30fdee4f7e0775d8707bcf6 Mon Sep 17 00:00:00 2001 From: Lyn Date: Tue, 12 Nov 2024 03:22:42 +0100 Subject: [PATCH] fixed logic error --- hosts/network.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/network.nix b/hosts/network.nix index 40a492f..f8db806 100644 --- a/hosts/network.nix +++ b/hosts/network.nix @@ -64,23 +64,23 @@ filteredHosts; in { #create first options because apparently you have to do that in Nix - config.lyn.network.IPv6.peerlist = lib.mkOption { + config.${prefix}.network.IPv6.peerlist = lib.mkOption { type = lib.types.list; description = "List of all IPv6 Wireguard peers"; }; - config.lyn.network.IPv4.peerlist = lib.mkOption { + config.${prefix}.network.IPv4.peerlist = lib.mkOption { type = lib.types.list; description = "List of all IPv4 Wireguard peers"; }; - config.lyn.network.IPv6.wg_subnet = lib.mkOption { + config.${prefix}.network.IPv6.wg_subnet = lib.mkOption { type = string; description = "The IPv6 range that the peers will use"; }; - config.lyn.network.IPv4.wg_subnet = lib.mkOption { + config.${prefix}.network.IPv4.wg_subnet = lib.mkOption { type = string; description = "The IPv4 range that the peers will use"; }; - config.lyn.network.IPv6.hosts = lib.mkOption { + config.${prefix}.network.IPv6.hosts = lib.mkOption { type = lib.types.set; description = "All hosts in this network that this config should be aware of"; };