From 06f36bd60de63b8266563845bc453959d6935f87 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 3 Feb 2023 23:52:44 +0100 Subject: [PATCH] sail: Re-introduce static internal network interface --- system/hosts/sail.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/hosts/sail.nix b/system/hosts/sail.nix index f126c12..5fefd6d 100644 --- a/system/hosts/sail.nix +++ b/system/hosts/sail.nix @@ -80,11 +80,20 @@ in interfaces = { enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses; + + enp7s0.ipv4 = { + addresses = [{ address = "10.99.99.2"; prefixLength = 32; }]; + + routes = [ + { address = "10.99.99.0"; prefixLength = 24; via = "10.99.99.1"; } + { address = "10.99.99.1"; prefixLength = 32; } + ]; + }; }; defaultGateway6 = { address = "fe80::1"; interface = "enp1s0"; }; - dhcpcd.denyInterfaces = [ "veth*" ]; + dhcpcd.denyInterfaces = [ "enp7s0" "veth*" ]; timeServers = [ "ntp1.hetzner.de"