diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-02-24 12:05:51 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-02-24 12:30:51 +0100 |
commit | 5141a78699924106c8f3d7359528176b1c3fdf7a (patch) | |
tree | a4c6147100321caa287f19068957c3321a97c5aa /systems | |
parent | 5707d6961bbd68c2ab51eaaa790435546f714037 (diff) | |
download | Nix-5141a78699924106c8f3d7359528176b1c3fdf7a.tar.gz Nix-5141a78699924106c8f3d7359528176b1c3fdf7a.tar.zst Nix-5141a78699924106c8f3d7359528176b1c3fdf7a.zip |
Add ipv6 configuration for zoldene
Diffstat (limited to 'systems')
-rw-r--r-- | systems/zoldene/base.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/systems/zoldene/base.nix b/systems/zoldene/base.nix index 2751d63..fc0d68a 100644 --- a/systems/zoldene/base.nix +++ b/systems/zoldene/base.nix | |||
@@ -84,6 +84,19 @@ in | |||
84 | firewall.allowedUDPPorts = [ 43484 ]; | 84 | firewall.allowedUDPPorts = [ 43484 ]; |
85 | # needed for initrd proper network setup too | 85 | # needed for initrd proper network setup too |
86 | useDHCP = lib.mkDefault true; | 86 | useDHCP = lib.mkDefault true; |
87 | interfaces."enp0s31f6".ipv6.addresses = pkgs.lib.flatten (pkgs.lib.attrsets.mapAttrsToList | ||
88 | (n: ips: map (ip: { address = ip; prefixLength = (if n == "main" && ip == pkgs.lib.head ips.ip6 then 64 else 128); }) (ips.ip6 or [])) | ||
89 | config.hostEnv.ips); | ||
90 | defaultGateway6 = { | ||
91 | address = "fe80::1"; | ||
92 | interface = "enp0s31f6"; | ||
93 | }; | ||
94 | nameservers = [ | ||
95 | "185.12.64.1" | ||
96 | "185.12.64.2" | ||
97 | "2a01:4ff:ff00::add:1" | ||
98 | "2a01:4ff:ff00::add:2" | ||
99 | ]; | ||
87 | 100 | ||
88 | wireguard.interfaces.wg0 = { | 101 | wireguard.interfaces.wg0 = { |
89 | generatePrivateKeyFile = true; | 102 | generatePrivateKeyFile = true; |