Files
nixos/nixosModules/vds/xray.nix
T
2025-09-16 21:58:41 +03:00

21 lines
336 B
Nix
Executable File

{
config,
inputs,
pkgs,
...
}:
{
services.xray = {
enable = true;
settings = inputs.zeroq-credentials.services.xray;
};
networking.firewall = {
allowedTCPPorts = [ 8443 ];
allowedUDPPorts = [ 8443 ]; # 41641
#trustedInterfaces = [ "tailscale0" ];
};
environment.systemPackages = [ pkgs.xray ];
}