summary refs log tree commit diff stats
path: root/hosts/by-name/server2/networking.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 01:34:17 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 01:34:17 +0100
commit50672e10e87fa90f9ded5065aa4bc4ce0afaf730 (patch)
treed7002595afb6a6061fc1af6632fe05f4cfc9d9e7 /hosts/by-name/server2/networking.nix
parent--wip-- [skip ci] (diff)
downloadnixos-server-50672e10e87fa90f9ded5065aa4bc4ce0afaf730.tar.gz
nixos-server-50672e10e87fa90f9ded5065aa4bc4ce0afaf730.zip
[WIP] Setup `deploy-rs` and add networking detection script
Diffstat (limited to 'hosts/by-name/server2/networking.nix')
-rw-r--r--hosts/by-name/server2/networking.nix10
1 files changed, 6 insertions, 4 deletions
diff --git a/hosts/by-name/server2/networking.nix b/hosts/by-name/server2/networking.nix
index 73ca88a..e6a96c2 100644
--- a/hosts/by-name/server2/networking.nix
+++ b/hosts/by-name/server2/networking.nix
@@ -2,22 +2,24 @@
   ipv4 = "185.16.61.132";
   ipv6 = "2a03:4000:a:106::1";
 in {
-  # This file was populated at runtime with the networking
-  # details gathered from the active system.
   networking = {
     nameservers = [
       "8.8.8.8"
     ];
+
     defaultGateway = {
-      address = ipv4;
+      address = "89.58.56.1";
       interface = "eth0";
     };
     defaultGateway6 = {
-      address = ipv6;
+      address = "fe80::1";
       interface = "eth0";
     };
+
     dhcpcd.enable = false;
+
     usePredictableInterfaceNames = lib.mkForce false;
+
     interfaces = {
       eth0 = {
         ipv4.addresses = [