diff --git a/hosts/hydra/configuration.nix b/hosts/hydra/configuration.nix index 5298d2d0..9dc5ea70 100644 --- a/hosts/hydra/configuration.nix +++ b/hosts/hydra/configuration.nix @@ -11,12 +11,15 @@ ./../../lib/tun.nix ]; - services.yggdrasil.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 - ]; + services.yggdrasil.config = + (with builtins; fromJSON (readFile /var/lib/yggdrasil/keys)) // { + 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 + ]; + }; nixpkgs.config.allowUnfree = true; diff --git a/lib/yggdrasil.nix b/lib/yggdrasil.nix index fbfaf362..8897294d 100644 --- a/lib/yggdrasil.nix +++ b/lib/yggdrasil.nix @@ -9,6 +9,7 @@ services.yggdrasil = { enable = true; package = (import {}).yggdrasil; + openMulticastPort = true; config.NodeInfo = { name = config.networking.hostName + ".c3d2"; location = "Dresden";