mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-28 14:50:55 +01:00
feat: enable ipv6 for akhaten
This commit is contained in:
parent
757386bd11
commit
d802fc961f
2 changed files with 20 additions and 2 deletions
|
@ -13,6 +13,7 @@
|
||||||
hm_version = inputs.home-manager-unstable;
|
hm_version = inputs.home-manager-unstable;
|
||||||
ips = {
|
ips = {
|
||||||
public.ipv4 = "163.172.91.82";
|
public.ipv4 = "163.172.91.82";
|
||||||
|
public.ipv6 = "2001:0bc8:3d24::45";
|
||||||
vpn.ipv4 = "100.100.45.33";
|
vpn.ipv4 = "100.100.45.33";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -49,7 +50,24 @@
|
||||||
"10-wan" = {
|
"10-wan" = {
|
||||||
matchConfig.Name = "enp0s20";
|
matchConfig.Name = "enp0s20";
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DHCP = "ipv4";
|
DHCP = "ipv6";
|
||||||
|
IPv6AcceptRA = true;
|
||||||
|
};
|
||||||
|
addresses = [
|
||||||
|
{ Address = "163.172.91.82/24"; }
|
||||||
|
{ Address = "2001:0bc8:3d24::45/64"; }
|
||||||
|
];
|
||||||
|
gateway = [ "163.172.91.1" ];
|
||||||
|
dhcpV6Config = {
|
||||||
|
DUIDRawData = "00:01:62:7c:0e:d3:27:5b";
|
||||||
|
DUIDType = "link-layer";
|
||||||
|
UseAddress = "no";
|
||||||
|
WithoutRA = "solicit";
|
||||||
|
};
|
||||||
|
ipv6AcceptRAConfig = {
|
||||||
|
DHCPv6Client = "always";
|
||||||
|
UseOnLinkPrefix = false;
|
||||||
|
UseAutonomousPrefix = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
|
|
|
@ -44,9 +44,9 @@ in
|
||||||
{
|
{
|
||||||
services.nsd = {
|
services.nsd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remoteControl.enable = true;
|
|
||||||
interfaces = [
|
interfaces = [
|
||||||
config.machine.meta.ips.public.ipv4
|
config.machine.meta.ips.public.ipv4
|
||||||
|
config.machine.meta.ips.public.ipv6
|
||||||
config.machine.meta.ips.vpn.ipv4
|
config.machine.meta.ips.vpn.ipv4
|
||||||
];
|
];
|
||||||
zones = lib.mapAttrs (name: _: {
|
zones = lib.mapAttrs (name: _: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue