Browse Source

Add lib/yggdrasil.nix

Enable yggdrasil for pulsebert
storage-ng
Emery Hemingway 6 months ago
parent
commit
e04eaf5a9b

+ 3
- 0
.gitmodules View File

@@ -1,3 +1,6 @@
1 1
 [submodule "secrets"]
2 2
 	path = secrets
3 3
 	url = ssh://git@gitea.c3d2.de:2222/c3d2-admins/secrets.git
4
+[submodule "overlays/yggdrasil-package-nix"]
5
+	path = overlays/yggdrasil-package-nix
6
+	url = https://github.com/ehmry/yggdrasil-package-nix.git

+ 1
- 0
hosts/hydra/configuration.nix View File

@@ -7,6 +7,7 @@
7 7
     ./hydra.nix
8 8
     ./cache.nix
9 9
     ./../../lib/common/c3d2.nix
10
+    ./../../lib/yggdrasil.nix
10 11
   ];
11 12
 
12 13
   security.pam.enableSSHAgentAuth = true;

+ 1
- 0
hosts/pulsebert/configuration.nix View File

@@ -15,6 +15,7 @@ in {
15 15
       ../../lib/common/common.nix
16 16
       ../../lib/users.nix
17 17
       ../../lib/mpd.nix
18
+      ../../lib/yggdrasil.nix
18 19
     ];
19 20
 
20 21
   # Use the systemd-boot EFI boot loader.

+ 22
- 0
lib/yggdrasil.nix View File

@@ -0,0 +1,22 @@
1
+{ config, ... }: {
2
+
3
+  imports = [ ./../overlays/yggdrasil-package-nix/nixos-module.nix ];
4
+
5
+  networking.firewall.extraCommands = ''
6
+   ip6tables -A INPUT -s fe80::/10 -j ACCEPT
7
+  '';
8
+
9
+  services.yggdrasil = {
10
+    enable = true;
11
+    Peers = [
12
+      "tcp://5.9.112.248:39444"
13
+      "tcp://159.69.35.16:31337"
14
+      "tcp://195.201.93.98:17177"
15
+    ];
16
+    NodeInfo = {
17
+      name = config.networking.hostName + ".c3d2";
18
+      deployment = "nixos";
19
+      location = "Pieschen (Q8945)";
20
+    };
21
+  };
22
+}

+ 1
- 0
overlays/yggdrasil-package-nix

@@ -0,0 +1 @@
1
+Subproject commit a0ee45162f90401acc52f929a7544838ec13a309

Loading…
Cancel
Save