From dc96c59e1c09ed82e433672ba85d9bfa809aacac Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 3 Feb 2023 23:36:20 +0100 Subject: [PATCH] sail: Static internal network config --- system/hosts/sail.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/system/hosts/sail.nix b/system/hosts/sail.nix index bcccdbe..9c1c5ac 100644 --- a/system/hosts/sail.nix +++ b/system/hosts/sail.nix @@ -78,10 +78,15 @@ in networking = { hostName = "sail"; - interfaces.enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses; + interfaces = { + enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses; + + enp7s0.ipv4.addresses = [{ address = "10.99.99.2"; prefixLength = 24; }]; + }; + defaultGateway6 = { address = "fe80::1"; interface = "enp1s0"; }; - dhcpcd.denyInterfaces = [ "veth*" ]; + dhcpcd.denyInterfaces = [ "enp7s0" "veth*" ]; timeServers = [ "ntp1.hetzner.de"