feat(tazjin/koptevo): configure yggdrasil network

I'm looking to replace tailscale with this for some use-cases.

Change-Id: I00f765a403879ef048e635a6fedcfdde3f685159
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12482
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2024-09-14 23:12:08 +03:00 committed by tazjin
parent adf8a7da87
commit 7f5956b2be

View file

@ -62,7 +62,7 @@ in
domain = "tazj.in"; domain = "tazj.in";
useDHCP = true; useDHCP = true;
firewall.enable = true; firewall.enable = true;
firewall.allowedTCPPorts = [ 22 80 443 8776 ]; firewall.allowedTCPPorts = [ 22 80 443 8776 9443 ];
wireless.enable = true; wireless.enable = true;
wireless.networks."How do I computer fast?" = { wireless.networks."How do I computer fast?" = {
@ -195,6 +195,30 @@ in
wget wget
]; ];
# configure Yggdrasil network
services.yggdrasil = {
enable = true;
persistentKeys = true;
openMulticastPort = true;
settings = {
Listen = [ "tls://[::]:0" ];
IfName = "ygg0";
Peers = [
"quic://ygg-msk-1.averyan.ru:8364"
"tls://ekb.itrus.su:7992"
"tls://s-mow-1.sergeysedoy97.ru:65534"
];
MulticastInterfaces = [{
Regex = "enp.*";
Beacon = true;
Listen = true;
Port = 9443; # yggd
}];
};
};
programs.mtr.enable = true; programs.mtr.enable = true;
programs.mosh.enable = true; programs.mosh.enable = true;
zramSwap.enable = true; zramSwap.enable = true;