about summary refs log tree commit diff
path: root/users/tazjin/nixos/modules/zerotier.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/nixos/modules/zerotier.nix')
-rw-r--r--users/tazjin/nixos/modules/zerotier.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/users/tazjin/nixos/modules/zerotier.nix b/users/tazjin/nixos/modules/zerotier.nix
new file mode 100644
index 000000000000..bd503cf8f026
--- /dev/null
+++ b/users/tazjin/nixos/modules/zerotier.nix
@@ -0,0 +1,14 @@
+# Configuration for my Zerotier network.
+
+{
+  environment.persistence."/persist".directories = [
+    "/var/lib/zerotier-one"
+  ];
+
+  services.zerotierone.enable = true;
+  services.zerotierone.joinNetworks = [
+    "35c192ce9bd4c8c7"
+  ];
+
+  networking.firewall.trustedInterfaces = [ "zt7nnembs4" ];
+}