mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 14:40:09 +03:00
21 lines
305 B
Nix
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 ];
|
|
}
|