refactor into modules
This commit is contained in:
11
nixos/modules/networking/tailscale.nix
Normal file
11
nixos/modules/networking/tailscale.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.tailscale.enable = true;
|
||||
|
||||
networking.firewall.trustedInterfaces = [ "tailscale0" ];
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.conf.tailscale0.rp_filter" = 0;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user