Add ipv6 gateway

This commit is contained in:
Felix Albrigtsen 2024-09-28 21:28:26 +02:00
parent a7fe2aabc5
commit d9641e8c34
2 changed files with 7 additions and 8 deletions

View File

@ -1,13 +1,10 @@
{ lib, values, ... }: { lib, values, ... }:
{ {
systemd.network.enable = true;
networking.domain = "pvv.ntnu.no"; networking.domain = "pvv.ntnu.no";
networking.useDHCP = false; networking.useDHCP = false;
# networking.search = [ "pvv.ntnu.no" "pvv.org" ];
# networking.nameservers = lib.mkDefault [ "129.241.0.200" "129.241.0.201" ];
# networking.tempAddresses = lib.mkDefault "disabled";
# networking.defaultGateway = values.hosts.gateway;
systemd.network.enable = true; # The rest of the networking configuration is usually sourced from /values.nix
services.resolved = { services.resolved = {
enable = lib.mkDefault true; enable = lib.mkDefault true;

View File

@ -19,12 +19,13 @@ in rec {
# Also on bicep # Also on bicep
turn = { turn = {
ipv4 = pvv-ipv4 213; ipv4 = pvv-ipv4 213;
ipv6 = pvv-ipv6 213; ipv6 = pvv-ipv6 1;
}; };
}; };
hosts = { hosts = {
gateway = pvv-ipv4 129; gateway = pvv-ipv4 129;
gateway6 = pvv-ipv6 1;
bekkalokk = { bekkalokk = {
ipv4 = pvv-ipv4 168; ipv4 = pvv-ipv4 168;
ipv6 = pvv-ipv6 168; ipv6 = pvv-ipv6 168;
@ -63,7 +64,8 @@ in rec {
defaultNetworkConfig = { defaultNetworkConfig = {
dns = [ "129.241.0.200" "129.241.0.201" "2001:700:300:1900::200" "2001:700:300:1900::201" ]; dns = [ "129.241.0.200" "129.241.0.201" "2001:700:300:1900::200" "2001:700:300:1900::201" ];
domains = [ "pvv.ntnu.no" "pvv.org" ]; domains = [ "pvv.ntnu.no" "pvv.org" ];
gateway = [ hosts.gateway ]; gateway = [ hosts.gateway hosts.gateway6 ];
networkConfig.IPv6AcceptRA = "no"; networkConfig.IPv6AcceptRA = "no";
DHCP = "no"; DHCP = "no";