mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
21 lines
336 B
Nix
Executable File
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 ];
|
|
}
|