ctucx.git: nixfiles

ctucx' nixfiles

commit 0f207bd0997e2cf6d68a0f29473fc4c7e07a4931
parent bf55a3f9cee18faf3941f93cd5425317e9b6443e
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 16 Jan 2023 12:54:59 +0100

machines/{wanderduene,trabbi}: configure static-ipv4
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/machines/trabbi/configuration.nix b/machines/trabbi/configuration.nix
@@ -62,14 +62,17 @@
     useDHCP     = false;
     nameservers = [ "8.8.8.8" ];
 
+    defaultGateway  = "89.58.60.1";
     defaultGateway6 = {
       interface = "ens3";
       address   = "fe80::1";
     };
 
     interfaces.ens3 = {
-      useDHCP = true;
-
+      ipv4.addresses = [{
+        address = "89.58.62.171";
+        prefixLength = 22;
+      }];
       ipv6.addresses = [{
         address      = "2a0a:4cc0:1:2d7::1";
         prefixLength = 64;
diff --git a/machines/wanderduene/configuration.nix b/machines/wanderduene/configuration.nix
@@ -45,13 +45,17 @@
     useDHCP     = false;
     nameservers = [ "8.8.8.8" ];
 
+    defaultGateway  = "46.38.253.1";
     defaultGateway6 = {
       interface = "ens3";
       address   = "fe80::1";
     };
 
     interfaces.ens3 = {
-      useDHCP = true;
+      ipv4.addresses = [{
+        address = "46.38.253.139";
+        prefixLength = 24;
+      }];
 
       ipv6.addresses = [{
         address      = "2a03:4000:1:45d::1";