about summary refs log tree commit diff
path: root/machines/srv1
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-01 16:41:08 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2021-05-01 16:41:08 +0200
commit67486c3f054a6ab9c658fa16e96072de6907214a (patch)
treef2011ef0228133430a575a0bcd22af9a8a32c8df /machines/srv1
parent052b9c4404a2678729712092dfdbb3e2ae25997b (diff)
downloaddots-67486c3f054a6ab9c658fa16e96072de6907214a.tar.gz
dots-67486c3f054a6ab9c658fa16e96072de6907214a.zip
Add yggdrasil config
Diffstat (limited to 'machines/srv1')
-rw-r--r--machines/srv1/configuration.nix1
-rw-r--r--machines/srv1/yggdrasil.nix12
2 files changed, 13 insertions, 0 deletions
diff --git a/machines/srv1/configuration.nix b/machines/srv1/configuration.nix
index ea7d730..8ceaaf2 100644
--- a/machines/srv1/configuration.nix
+++ b/machines/srv1/configuration.nix
@@ -23,6 +23,7 @@ in
       [
       #./hardware-configuration.nix
       ./cgit.nix
+      ./yggdrasil.nix
     ];
 
     boot.loader.grub.enable = true;
diff --git a/machines/srv1/yggdrasil.nix b/machines/srv1/yggdrasil.nix
new file mode 100644
index 0000000..0d0291f
--- /dev/null
+++ b/machines/srv1/yggdrasil.nix
@@ -0,0 +1,12 @@
+{
+  services.yggdrasil = {
+    enable = true;
+    persistentKeys = true;
+    config = {
+      Peers = [
+        "tcp://51.75.44.73:50001"
+        "tcp://176.223.130.120:22632"
+      ];
+    };
+  };
+}