diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-21 21:10:13 +0200 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-08-21 21:31:05 +0200 |
| commit | a0bb2e015f746be636d7375770d295077cc0f67a (patch) | |
| tree | ddbf4d35bcfcf7b41e7c61522bf665ac5fd93432 /hosts/tower/network.nix | |
| parent | c5fde5dc02ac4d1ecb9ac672a76260b400ac11e1 (diff) | |
tower: set ip address statically
Diffstat (limited to 'hosts/tower/network.nix')
| -rw-r--r-- | hosts/tower/network.nix | 14 |
1 files changed, 13 insertions, 1 deletions
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; |
