dotfiles/hosts/oracle/o001/mods/rustdesk-server.nix
RingOfStorms (Joshua Bell) 06fe42789a many updates to lio and o001
2025-04-25 08:59:32 -05:00

31 lines
541 B
Nix

{
...
}:
let
TailscaleInterface = "tailscale0";
TCPPorts = [
21115
21116
21117
21118
21119
];
UDPPorts = [ 21116 ];
in
{
services = {
rustdesk-server = {
enable = true;
relay.enable = true;
signal.enable = true;
# Instead we only allow this on the tailnet IP range
openFirewall = false;
signal.relayHosts = [ "localhost" ];
};
};
networking.firewall.interfaces."${TailscaleInterface}" = {
allowedTCPPorts = TCPPorts;
allowedUDPPorts = UDPPorts;
};
}