This commit is contained in:
2025-07-23 22:27:12 +03:00
parent 611774b200
commit 51cda7557c
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ let
#nixos-facter-modules.nixosModules.facter
self.nixosModules.default
self.nixosModules.server.xray
#self.homeConfigurations.server.nixosModule # home-manager configuration module
];
+6
View File
@@ -6,9 +6,15 @@
...
}:
{
services.xray = {
enable = true;
settingsFile = "/etc/xray/config.json";
};
networking.firewall = {
allowedTCPPorts = [ 443 ];
allowedUDPPorts = [ 443 ];
};
environment.systemPackages = with pkgs; [ xray ];
}