forked from c3d2/nix-config
yggdrasil container: enable DHCP/SLAAC
This commit is contained in:
parent
78bd91f0e6
commit
aefbb759e6
|
@ -8,10 +8,15 @@
|
|||
];
|
||||
|
||||
networking.interfaces.eth0 = {
|
||||
useDHCP = true;
|
||||
ipv6.addresses = [
|
||||
{ address = "310:5217:69c0:9afc::1"; prefixLength = 64; }
|
||||
];
|
||||
};
|
||||
# Route IPv6
|
||||
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
|
||||
# Obtain global IPv6 despite being a router myself
|
||||
boot.kernel.sysctl."net.ipv6.conf.eth0.accept_ra" = 2;
|
||||
|
||||
services.yggdrasil = {
|
||||
openMulticastPort = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user