Try tailscale
This commit is contained in:
parent
aa79162e2c
commit
a2e5f43a1f
17 changed files with 50 additions and 80 deletions
|
|
@ -12,6 +12,7 @@
|
|||
./network.nix
|
||||
./locale.nix
|
||||
./syncthing.nix
|
||||
./tailscale.nix
|
||||
./zfs.nix
|
||||
../../common
|
||||
];
|
||||
|
|
|
|||
|
|
@ -70,11 +70,6 @@
|
|||
};
|
||||
|
||||
programs = {
|
||||
clash-verge = {
|
||||
enable = true;
|
||||
tunMode = true;
|
||||
autoStart = true;
|
||||
};
|
||||
dconf.enable = true;
|
||||
steam.enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -7,17 +7,7 @@
|
|||
wifi.backend = "iwd";
|
||||
};
|
||||
nftables.enable = true;
|
||||
wireguard.interfaces.wgb = {
|
||||
ips = [ "10.32.54.2/32" ];
|
||||
peers = [{
|
||||
allowedIPs = [ "10.32.54.0/24" ];
|
||||
endpoint = "${const.domain}:${toString const.port.wireguard-server}";
|
||||
publicKey = "0j8+alXU/f2UgWN61R6+Wjs9xelGRwpSbe5NyOwWlF4=";
|
||||
}];
|
||||
privateKeyFile = config.sops.secrets."wireguard/${config.networking.hostName}".path;
|
||||
};
|
||||
wireless.iwd.enable = true;
|
||||
};
|
||||
services.resolved.enable = true;
|
||||
sops.secrets."wireguard/${config.networking.hostName}" = { };
|
||||
}
|
||||
|
|
|
|||
7
linux/blitzar/tailscale.nix
Normal file
7
linux/blitzar/tailscale.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
port = 22276;
|
||||
useRoutingFeatures = "client";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue