From a0bb2e015f746be636d7375770d295077cc0f67a Mon Sep 17 00:00:00 2001 From: Isabella Bastaja Date: Fri, 21 Aug 2026 21:10:13 +0200 Subject: tower: set ip address statically --- hosts/tower/network.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'hosts/tower') diff --git a/hosts/tower/network.nix b/hosts/tower/network.nix index 09a97a3..8bd6091 100644 --- a/hosts/tower/network.nix +++ b/hosts/tower/network.nix @@ -2,13 +2,25 @@ { networking = { hostName = "tower"; - networkmanager.enable = true; firewall = { checkReversePath = "loose"; trustedInterfaces = [ "tailscale0" ]; allowedUDPPorts = [ config.services.tailscale.port ]; }; + useNetworkd = false; + useDHCP = false; }; + systemd.network = { + enable = true; + networks = { + "10-wan" = { + matchConfig.Name = "enp1s0"; + address = [ "172.19.96.2/24" ]; + routes = [ { Gateway = "172.19.96.1"; } ]; + }; + }; + }; + services.tailscale = { enable = true; -- cgit v1.3.1