From 07ff5dfbc795e5d2f9517383c4e25ca9c2accef2 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 25 Jan 2023 09:07:20 +0000 Subject: [PATCH] fix: slight changes to networking of jones --- machines/agentjones.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/machines/agentjones.nix b/machines/agentjones.nix index 72857b2..7e6727a 100644 --- a/machines/agentjones.nix +++ b/machines/agentjones.nix @@ -42,20 +42,21 @@ in { # vms are defined by teh vm host networking.interfaces = { en01 = { - ipv4.addresses = [ + ipv4.routes = [ { - address = "${ip_pub}/32"; - prefixLength = 24; + address = "${ip_pub}"; + prefixLength = 32; # ITD skynet router - via = "193.1.99.65"; + via = "193.1.99.65/32"; } ]; }; en02 = { + useDHCP = false; ipv4.addresses = [ { - address = "${ip_priv}/32"; - prefixLength = 24; + address = "${ip_priv}"; + prefixLength = 32; } ]; };