From a7515f20ebc043d0df1265a99696cb2ef2a369c0 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 20 Jan 2023 14:50:27 +0800 Subject: [PATCH] hosts/plover: fix string interpolation --- hosts/plover/modules/hardware/networks.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/plover/modules/hardware/networks.nix b/hosts/plover/modules/hardware/networks.nix index 015b7a7b..3f9b5b7c 100644 --- a/hosts/plover/modules/hardware/networks.nix +++ b/hosts/plover/modules/hardware/networks.nix @@ -1,14 +1,17 @@ # It just contains a set of network-related variables mainly used for # network-related services. Make sure to change this every time you migrate to # a new server. +let + inherit (builtins) toString; +in rec { publicIP = "95.217.212.19"; publicIPPrefixLength = 32; - publicIP' = "${publicIP}/${publicIPPrefixLength}"; + publicIP' = "${publicIP}/${toString publicIPPrefixLength}"; publicIPv6 = "2a01:4f9:c011:a448::"; publicIPv6PrefixLength = 64; - publicIPv6' = "${publicIPv6}/${publicIPv6PrefixLength}"; + publicIPv6' = "${publicIPv6}/${toString publicIPv6PrefixLength}"; privateIPNetworkRange = "172.16.0.0/32"; privateNetworkGatewayIP = "172.16.0.1/32";