38 lines
896 B
Nix
38 lines
896 B
Nix
{ pkgs, lib, config, hostRegistry, zentralwerk, ... }:
|
|
|
|
let
|
|
host = hostRegistry.hosts.yggdrasil;
|
|
yggAddress = host.ygg;
|
|
yggPrefix = "301:4561:bb58:4dac"; # 301:4561:bb58:4dac::/64
|
|
# taken from the output of "yggdrasilctl getself".
|
|
port = 46823;
|
|
in {
|
|
networking.firewall.enable = false;
|
|
|
|
services.yggdrasil = {
|
|
enable = true;
|
|
persistentKeys = true;
|
|
config = {
|
|
IfName = "ygg";
|
|
Peers = # https://publicpeers.neilalexander.dev/
|
|
[
|
|
# deutschland
|
|
"tcp://ygg.mkg20001.io:80"
|
|
|
|
# czechia
|
|
"tcp://[2a03:3b40:fe:ab::1]:46370" # emery vpsfree.cz
|
|
|
|
# nederlands
|
|
"tls://77.249.167.165:8084" # emery nijmegen
|
|
];
|
|
NodeInfo = {
|
|
# This information is visible to the network.
|
|
name = "y.c3d2.de";
|
|
location = "Dresden";
|
|
email = "ehmry@c3d2.de";
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|