Skip to content

Commit

Permalink
ipv6: enable
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Sep 20, 2024
1 parent 8737a99 commit 7a11b32
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
5 changes: 4 additions & 1 deletion nixos/hosts/matrix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@

networking.hostName = "matrix";
systemd.network.networks = {
"10-wan".matchConfig.MACAddress = "96:00:02:23:cd:a5";
"10-wan" = {
matchConfig.MACAddress = "96:00:02:23:cd:a5";
address = [ "2a01:4ff:f0:ec8::1/64" ];
};
"10-nevarronet".matchConfig.MACAddress = "86:00:00:44:d6:83";
};

Expand Down
7 changes: 5 additions & 2 deletions nixos/hosts/mineshspc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ in {

networking.hostName = "mineshspc";
systemd.network.networks = {
"10-wan".matchConfig.MACAddress = "96:00:01:f3:c7:74";
"10-nevarronet".matchConfig.MACAddress = "86:00:00:3a:eb:6a";
"10-wan" = {
matchConfig.MACAddress = "96:00:01:f3:c7:74";
address = [ "2a01:4ff:f0:abdd::1/64" ];
};
"10-nevarronet" = { matchConfig.MACAddress = "86:00:00:3a:eb:6a"; };
};

services.nginx = {
Expand Down
5 changes: 4 additions & 1 deletion nixos/hosts/monitoring/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ in {

networking.hostName = "monitoring";
systemd.network.networks = {
"10-wan".matchConfig.MACAddress = "96:00:02:1f:07:ec";
"10-wan" = {
matchConfig.MACAddress = "96:00:02:1f:07:ec";
address = [ "2a01:4ff:f0:9b5d::1/64" ];
};
"10-nevarronet".matchConfig.MACAddress = "86:00:00:43:8c:62";
};

Expand Down
15 changes: 13 additions & 2 deletions nixos/modules/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,19 @@
systemd.network = {
enable = true;
networks = {
"10-wan".networkConfig.DHCP = "ipv4";
"10-nevarronet".networkConfig.DHCP = "ipv4";
"10-wan" = {
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
routes = [{ routeConfig.Gateway = "fe80::1"; }];
};
"10-nevarronet" = {
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
};
};
};

Expand Down

0 comments on commit 7a11b32

Please sign in to comment.