Add ipv6 networking

This commit is contained in:
Jakob Lechner 2023-05-02 17:54:31 +00:00
parent e52ec5838e
commit 5e5e05d90e
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -69,8 +69,35 @@ with lib; {
};
};
services.radvd = {
enable = true;
config = ''
interface enp3s4 {
AdvSendAdvert on;
prefix ::/64 {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};
'';
};
networking.dhcpcd.extraConfig = ''
noipv6rs
waitip 6
interface enp4s5
ipv6rs
ia_na 1
ia_pd 1/::/64 enp3s4/0/64
'';
boot = {
kernelPackages = zfsKernelPackages;
kernel.sysctl = {
"net.ipv6.conf.all.forwarding" = 1;
};
initrd = {
availableKernelModules = [ "ahci" ];
luks.devices = lib.listToAttrs (