hosts/marisa: ygg endpoint, hosts/daiyousei: ygg

This commit is contained in:
kat witch 2021-09-25 03:54:05 +01:00
parent 9563a957ec
commit edf1786377
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 18 additions and 1 deletions

View file

@ -28,6 +28,11 @@
};
};
network.yggdrasil = {
enable = true;
pubkey = "0db7838e7cbab0dc0694f09b683b3a064bf63665415f2af47d1269c2861ffc20";
};
services.nginx.virtualHosts =
let
splashy = pkgs.host-splash-site config.networking.hostName;

View file

@ -65,7 +65,19 @@
nixos.ipv4.address = "104.244.72.5";
nixos.ipv6.address = "2605:6400:30:eed1:6cf7:bbfc:b4e:15c0";
};
firewall.public.interfaces = singleton "ens3";
yggdrasil = {
enable = true;
pubkey = "3b171319fbb6be1716c99f36b83a70346ec655d99afde410a50ca61a1c278c7c";
listen.enable = true;
listen.endpoints = [ "tcp://${config.network.addresses.public.nixos.ipv4.address}:52969" "tcp://[${config.network.addresses.public.nixos.ipv6.address}]:52969" ];
};
firewall = {
public = {
interfaces = singleton "ens3";
tcp.ports = singleton 62969;
};
private.interfaces = singleton "yggdrasil";
};
};
fileSystems."/" ={