Files
nixos/modules/server/xray.nix
T
2025-07-24 00:00:58 +03:00

22 lines
366 B
Nix

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