summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-03-19 20:16:17 +0100
committerene <ene@sils.li>2023-03-19 20:16:17 +0100
commit7937ec74503243bb3e2782bc61b3aa61eacc6842 (patch)
tree43a54f070a59edd8072ea8a94b2ee960af686dee /hosts
parentFix(services): Remove Minecraft (diff)
downloadnixos-server-7937ec74503243bb3e2782bc61b3aa61eacc6842.tar.gz
nixos-server-7937ec74503243bb3e2782bc61b3aa61eacc6842.zip
Fix(hosts/server1/networking): Fix Gateways
Assigning a specific interface for a gateway should make it easier for
nixos to configure it.
Diffstat (limited to 'hosts')
-rw-r--r--hosts/server1/networking.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/hosts/server1/networking.nix b/hosts/server1/networking.nix
index 26d6719..dd86494 100644
--- a/hosts/server1/networking.nix
+++ b/hosts/server1/networking.nix
@@ -5,8 +5,14 @@
     nameservers = [
       "8.8.8.8"
     ];
-    defaultGateway = "89.58.56.1";
-    defaultGateway6 = "fe80::1";
+    defaultGateway = {
+      address = "89.58.56.1";
+      interface = "eth0";
+    };
+    defaultGateway6 = {
+      address = "fe80::1";
+      interface = "eth0";
+    };
     dhcpcd.enable = false;
     usePredictableInterfaceNames = lib.mkForce false;
     interfaces = {