Creates a standalone data file that can be imported by both aspects/constants.nix and terranix configurations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
15 lines
352 B
Nix
15 lines
352 B
Nix
# aspects/server/tailscale.nix
|
|
{ ... }:
|
|
{
|
|
flake.modules.nixos.server-tailscale = { config, lib, pkgs, ... }: {
|
|
services.tailscale = {
|
|
extraSetFlags = [ "--advertise-exit-node" ];
|
|
useRoutingFeatures = "server";
|
|
};
|
|
|
|
boot.kernel.sysctl = {
|
|
"net.ipv4.ip_forward" = 1;
|
|
"net.ipv6.conf.all.forwarding" = 1;
|
|
};
|
|
};
|
|
}
|