init commit
This commit is contained in:
commit
181e6f681e
22 changed files with 940 additions and 0 deletions
25
pkgs/tailscale.nix
Normal file
25
pkgs/tailscale.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ tailscale ];
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
useRoutingFeatures = "both"; # Act as a client and a server (exit node)
|
||||
|
||||
# extraSetFlags = [
|
||||
# "--advertise-exit-node"
|
||||
# ];
|
||||
|
||||
disableUpstreamLogging = true;
|
||||
disableTaildrop = true;
|
||||
};
|
||||
|
||||
# Enable IP forwarding for subnet routers
|
||||
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
||||
|
||||
# TODO: this fixes MagicDNS but breaks DNS resolution on LAN (Pihole)
|
||||
# services.resolved.enable = true;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue