mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
22 lines
384 B
Nix
22 lines
384 B
Nix
{ inputs, ... }@flakeContext:
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
services.xray = {
|
|
enable = true;
|
|
settings = import "${inputs.zeroq-credentials}/services/xray/config.nix";
|
|
#settingsFile = "/etc/xray/config.json";
|
|
};
|
|
|
|
networking.firewall = {
|
|
allowedTCPPorts = [ 443 ];
|
|
allowedUDPPorts = [ 443 ];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [ xray ];
|
|
}
|