This commit is contained in:
2025-09-28 13:38:45 +03:00
parent 6f78c66740
commit 8f181318c0
9 changed files with 225 additions and 13 deletions
+1
View File
@@ -14,6 +14,7 @@
"server"
"vds"
"wsl"
"pub-vds"
];
default = "minimal";
description = "Type of device for this host.";
+9
View File
@@ -0,0 +1,9 @@
{
lib,
...
}:
{
imports = [
./xray.nix
];
}
+19
View File
@@ -0,0 +1,19 @@
{
config,
inputs,
pkgs,
...
}:
{
services.xray = {
enable = true;
settings = inputs.zeroq-credentials.public.services.xray;
};
networking.firewall = {
allowedTCPPorts = [ 443 ];
allowedUDPPorts = [ 443 ];
};
environment.systemPackages = [ pkgs.xray ];
}
-1
View File
@@ -13,7 +13,6 @@
networking.firewall = {
allowedTCPPorts = [ 8443 ];
allowedUDPPorts = [ 8443 ];
#trustedInterfaces = [ "tailscale0" ];
};
environment.systemPackages = [ pkgs.xray ];