summaryrefslogtreecommitdiff
path: root/modules/core/networking/tailscale.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-22 15:26:29 -0700
committerFuwn <[email protected]>2024-09-22 15:26:29 -0700
commite9576ef84bf5d442447830a36805932945a25a3b (patch)
treeece934f6db92f12225bf42246040a2ced103472c /modules/core/networking/tailscale.nix
parentcore: move kansai security to desktop (diff)
downloadnixos-config-e9576ef84bf5d442447830a36805932945a25a3b.tar.xz
nixos-config-e9576ef84bf5d442447830a36805932945a25a3b.zip
core: move tailscale
Diffstat (limited to 'modules/core/networking/tailscale.nix')
-rw-r--r--modules/core/networking/tailscale.nix35
1 files changed, 0 insertions, 35 deletions
diff --git a/modules/core/networking/tailscale.nix b/modules/core/networking/tailscale.nix
deleted file mode 100644
index 0228915..0000000
--- a/modules/core/networking/tailscale.nix
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- config,
- lib,
- pkgs,
- ...
-}:
-{
- networking.firewall.trustedInterfaces = [ "${config.services.tailscale.interfaceName}" ];
-
- # <https://tailscale.com/kb/1019/subnets/?tab=linux#step-1-install-the-tailscale-client>
- boot.kernel.sysctl = {
- "net.ipv4.ip_forward" = true;
- "net.ipv6.conf.all.forwarding" = true;
- };
-
- services = {
- tailscale = {
- enable = true;
- useRoutingFeatures = "both";
- authKeyFile = config.sops.secrets.tailscale_authentication_key.path;
- };
-
- networkd-dispatcher = {
- enable = true;
-
- rules."50-tailscale" = {
- onState = [ "routable" ];
-
- script = ''
- ${lib.getExe pkgs.ethtool} -K enp42s0 rx-udp-gro-forwarding on rx-gro-list off
- '';
- };
- };
- };
-}