refactor: move tailscale to abaduh folder
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./tailscale.nix
|
||||
./caddy.nix
|
||||
./cloudflare.nix
|
||||
];
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
extraUpFlags = [
|
||||
"--advertise-exit-node"
|
||||
];
|
||||
useRoutingFeatures = "both";
|
||||
permitCertUid = mkIf config.services.caddy.enable "caddy";
|
||||
};
|
||||
|
||||
boot.kernel.sysctl."net.ipv4.ip_forward" = mkDefault 1;
|
||||
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = mkDefault 1;
|
||||
}
|
||||
Reference in New Issue
Block a user