mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 22:41:52 +03:00
pub add
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
"server"
|
||||
"vds"
|
||||
"wsl"
|
||||
"pub-vds"
|
||||
];
|
||||
default = "minimal";
|
||||
description = "Type of device for this host.";
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./xray.nix
|
||||
];
|
||||
}
|
||||
@@ -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 ];
|
||||
}
|
||||
@@ -13,7 +13,6 @@
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 8443 ];
|
||||
allowedUDPPorts = [ 8443 ];
|
||||
#trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.xray ];
|
||||
|
||||
Reference in New Issue
Block a user