mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
123
This commit is contained in:
@@ -21,6 +21,7 @@ let
|
|||||||
#nixos-facter-modules.nixosModules.facter
|
#nixos-facter-modules.nixosModules.facter
|
||||||
|
|
||||||
self.nixosModules.default
|
self.nixosModules.default
|
||||||
|
self.nixosModules.server.xray
|
||||||
#self.homeConfigurations.server.nixosModule # home-manager configuration module
|
#self.homeConfigurations.server.nixosModule # home-manager configuration module
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,15 @@
|
|||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
services.xray = {
|
||||||
|
enable = true;
|
||||||
|
settingsFile = "/etc/xray/config.json";
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ 443 ];
|
allowedTCPPorts = [ 443 ];
|
||||||
allowedUDPPorts = [ 443 ];
|
allowedUDPPorts = [ 443 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ xray ];
|
environment.systemPackages = with pkgs; [ xray ];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user