Files
nixos/modules/server/xray.nix
T
2025-07-23 22:27:12 +03:00

21 lines
305 B
Nix

{ inputs, ... }@flakeContext:
{
config,
lib,
pkgs,
...
}:
{
services.xray = {
enable = true;
settingsFile = "/etc/xray/config.json";
};
networking.firewall = {
allowedTCPPorts = [ 443 ];
allowedUDPPorts = [ 443 ];
};
environment.systemPackages = with pkgs; [ xray ];
}