aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-13 01:15:56 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-13 01:15:56 +0100
commitf9ba0d6175c0f71ea5e2b25e702722984518fcbd (patch)
treeaea64b56d26c380abfb189c8f11cd36dc0247d10
parent2a8e7b9cde0bafc842e63e4c1e56baee0efd1a75 (diff)
downloadnix-infra-f9ba0d6175c0f71ea5e2b25e702722984518fcbd.tar.gz
nix-infra-f9ba0d6175c0f71ea5e2b25e702722984518fcbd.tar.bz2
nix-infra-f9ba0d6175c0f71ea5e2b25e702722984518fcbd.zip
Add ipv6 gateway
-rw-r--r--srv/h-alpha/hardware-configuration.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/srv/h-alpha/hardware-configuration.nix b/srv/h-alpha/hardware-configuration.nix
index 1003394..6304436 100644
--- a/srv/h-alpha/hardware-configuration.nix
+++ b/srv/h-alpha/hardware-configuration.nix
@@ -24,4 +24,14 @@
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
+ systemd.networks.networks."30-wan" = {
+ matchConfig.Name = "enp1s0";
+ networkConfig.DHCP = "ipv4";
+ address = [
+ "2a01:4f9:c012:5dd3::/64"
+ ];
+ routes = [
+ { Gateway = "fe80::1"; }
+ ];
+ };
}