2019-11-29 20:59:38 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
<nixpkgs/nixos/modules/profiles/minimal.nix>
|
2019-11-29 21:29:50 +01:00
|
|
|
../../../../lib/hq.nix
|
2019-11-29 21:51:20 +01:00
|
|
|
../../../../lib/yggdrasil-service.nix
|
2019-11-29 20:59:38 +01:00
|
|
|
];
|
|
|
|
|
2019-11-29 21:29:50 +01:00
|
|
|
networking.interfaces.eth0 = {
|
2019-11-29 22:11:39 +01:00
|
|
|
useDHCP = true;
|
2019-11-29 21:29:50 +01:00
|
|
|
ipv6.addresses = [
|
|
|
|
{ address = "310:5217:69c0:9afc::1"; prefixLength = 64; }
|
|
|
|
];
|
|
|
|
};
|
2019-11-29 22:11:39 +01:00
|
|
|
# Route IPv6
|
|
|
|
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
|
|
|
|
# Obtain global IPv6 despite being a router myself
|
|
|
|
boot.kernel.sysctl."net.ipv6.conf.eth0.accept_ra" = 2;
|
2019-11-29 21:29:50 +01:00
|
|
|
|
2019-11-29 20:59:38 +01:00
|
|
|
services.yggdrasil = {
|
|
|
|
openMulticastPort = true;
|
|
|
|
configFile = "/var/lib/yggdrasil/keys";
|
|
|
|
config.Peers = [
|
|
|
|
"tcp://[2a03:3b40:fe:ab::1]:46370" # Praha
|
|
|
|
"tcp://ygg.thingylabs.io:443" # Nürnberg
|
|
|
|
"tcp://176.223.130.120:22632" # Wrocław
|
|
|
|
"tcp://[2a05:9403::8b]:7743" # Praha
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|