From b83750e220c576e665ae0c94ad2129a31ca1851d Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 17 Nov 2023 11:12:20 -0800 Subject: [PATCH] Oops, need to specify index --- lib.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.nix b/lib.nix index feb1155..9189d1a 100644 --- a/lib.nix +++ b/lib.nix @@ -60,7 +60,7 @@ let getSiteNetwork = siteName: entities.sites."${siteName}".network; getSiteV4PrefixLength = siteName: - toInt (elemAt (splitString "/" (getSiteNetwork siteName))); + toInt (elemAt (splitString "/" (getSiteNetwork siteName)) 1); getSiteV6PrefixLength = siteName: abort "not implemented: getSiteV6PrefixLength";