Files
nixos/modules/vds/xray.nix
T
2025-07-26 15:51:50 +03:00

22 lines
367 B
Nix
Executable File

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