aboutsummaryrefslogtreecommitdiff
path: root/hosts/tower
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/tower')
-rw-r--r--hosts/tower/network.nix14
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;