about summary refs log tree commit diff
path: root/users/tazjin/nixos/polyanka/default.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-04-14T07·15+0300
committertazjin <tazjin@tvl.su>2023-04-17T09·32+0000
commit43d5658dad8b94ce63f5b6c400c248ce9eeec707 (patch)
tree96e17484dd7483b0717f4900e76add72efcd81f3 /users/tazjin/nixos/polyanka/default.nix
parenteadcfbbfab12edd7b956a31a88330dbc0ba0b038 (diff)
refactor(tazjin/nixos): zerotier out, tailscale in (again) r/6097
Tailscale just works better out of the box than Zerotier, and its
clients aren't unfree.

Change-Id: Ie35ef1adde0edbe923992b02e6b636269a96a81e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8482
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/nixos/polyanka/default.nix')
-rw-r--r--users/tazjin/nixos/polyanka/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/users/tazjin/nixos/polyanka/default.nix b/users/tazjin/nixos/polyanka/default.nix
index eed36d656a34..c7f41b95aa0c 100644
--- a/users/tazjin/nixos/polyanka/default.nix
+++ b/users/tazjin/nixos/polyanka/default.nix
@@ -125,10 +125,11 @@ in
   programs.mosh.enable = true;
   services.openssh.enable = true;
 
-  services.zerotierone.enable = true;
-  services.zerotierone.joinNetworks = [
-    "35c192ce9bd4c8c7"
-  ];
+  services.tailscale.enable = true;
+  boot.kernel.sysctl = {
+    "net.ipv4.ip_forward" = 1;
+    "net.ipv6.conf.all.forwarding" = 1;
+  };
 
   system.stateVersion = "20.09";
 }