Server-specific NixOS configuration: boot, nix, tailscale Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
466 B
Nix
18 lines
466 B
Nix
# aspects/server/tailscale.nix
|
|
{ inputs, ... }:
|
|
{
|
|
flake.modules.nixos.server-tailscale = { config, lib, pkgs, ... }: {
|
|
# Import parent aspect for inheritance
|
|
imports = [ inputs.self.modules.nixos.common-tailscale ];
|
|
|
|
services.tailscale = {
|
|
extraSetFlags = [ "--advertise-exit-node" ];
|
|
useRoutingFeatures = "server";
|
|
};
|
|
|
|
boot.kernel.sysctl = {
|
|
"net.ipv4.ip_forward" = 1;
|
|
"net.ipv6.conf.all.forwarding" = 1;
|
|
};
|
|
};
|
|
}
|