hydra: reuse pre-generated yggdrasil keys

This commit is contained in:
Ehmry - 2019-11-16 16:44:40 +01:00
parent 41c557695f
commit 93dee9d76a
2 changed files with 10 additions and 6 deletions

View File

@ -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;

View File

@ -9,6 +9,7 @@
services.yggdrasil = {
enable = true;
package = (import <nixpkgs-unstable> {}).yggdrasil;
openMulticastPort = true;
config.NodeInfo = {
name = config.networking.hostName + ".c3d2";
location = "Dresden";