summary refs log tree commit diff stats
path: root/hosts
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-12-24 18:39:23 +0100
committerSilas Schöffel <sils@sils.li>2024-12-24 18:39:23 +0100
commit051046070400a3e3f3ea5e9675830386e1919a0d (patch)
treeddc3009d93352a6d9dead967c7ca68e636c46803 /hosts
parent[WIP] (diff)
downloadnixos-server-051046070400a3e3f3ea5e9675830386e1919a0d.tar.gz
nixos-server-051046070400a3e3f3ea5e9675830386e1919a0d.zip
--wip-- [skip ci]
Diffstat (limited to 'hosts')
-rw-r--r--hosts/by-name/server2/networking.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/hosts/by-name/server2/networking.nix b/hosts/by-name/server2/networking.nix
index cd0484f..117154e 100644
--- a/hosts/by-name/server2/networking.nix
+++ b/hosts/by-name/server2/networking.nix
@@ -1,4 +1,7 @@
-{lib, ...}: {
+{lib, ...}: let
+  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 = {
@@ -6,7 +9,7 @@
       "8.8.8.8"
     ];
     defaultGateway = {
-      address = "89.58.56.1";
+      address = ipv4;
       interface = "eth0";
     };
     defaultGateway6 = {
@@ -19,19 +22,19 @@
       eth0 = {
         ipv4.addresses = [
           {
-            address = "89.58.58.33";
+            address = ipv4;
             prefixLength = 22;
           }
         ];
         ipv6.addresses = [
           {
-            address = "2a03:4000:6a:3f3::1";
+            address = ipv6;
             prefixLength = 64;
           }
         ];
         ipv4.routes = [
           {
-            address = "89.58.56.1";
+            address = ipv4;
             prefixLength = 32;
           }
         ];