From 543ab5843724140e19d63bfc0bbc9bc76eacbb98 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 1 Jan 2025 13:54:53 +0400 Subject: [PATCH] toilet --- modules/server/services/headscale.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/server/services/headscale.nix b/modules/server/services/headscale.nix index 29232c89..ba15c58f 100644 --- a/modules/server/services/headscale.nix +++ b/modules/server/services/headscale.nix @@ -9,7 +9,10 @@ in { environment.systemPackages = [ config.services.headscale.package pkgs.tailscale ]; - services.tailscale.enable = true; + services.tailscale = { + enable = true; + useRoutingFeatures = "server"; + }; services.headscale = { enable = true; @@ -99,11 +102,6 @@ in { webroot = null; }; - boot.kernel.sysctl = { - "net.ipv4.ip_forward" = 1; - "net.ipv6.conf.all.forwarding" = 1; - }; - systemd.services = { tailscaled.after = [ "headscale.service" ]; }; };