diff options
Diffstat (limited to 'systems/zoldene')
-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; |