Files
nixos/nixosModules/vds/xray.nix
T
2025-08-07 14:22:32 +03:00

21 lines
334 B
Nix
Executable File

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