aboutsummaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-02-24 12:05:51 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2024-02-24 12:30:51 +0100
commit5141a78699924106c8f3d7359528176b1c3fdf7a (patch)
treea4c6147100321caa287f19068957c3321a97c5aa /systems
parent5707d6961bbd68c2ab51eaaa790435546f714037 (diff)
downloadNix-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.nix13
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;