Add ipv6 networking
This commit is contained in:
parent
e52ec5838e
commit
5e5e05d90e
1 changed files with 27 additions and 0 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue