feat(vpn): Change client
This commit is contained in:
1 parent
c8a9d69b64
commit
353d8f526a
1 file changed
+5
-20
+5
-20
@@ -1,23 +1,8 @@
|
|||||||
{ inputs, pkgs, config, ... }: {
|
{
|
||||||
systemd.services.v2raya = {
|
programs.clash-verge = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "v2rayA gui client";
|
serviceMode = true;
|
||||||
after = [ "network.target" ];
|
tunMode = true;
|
||||||
serviceConfig = {
|
autoStart = true;
|
||||||
Restart = "always";
|
|
||||||
ExecStart = "${pkgs.v2raya}/bin/v2rayA";
|
|
||||||
};
|
|
||||||
path = with pkgs; [ iptables bash iproute2 ];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
environment = {
|
|
||||||
V2RAYA_LOG_FILE = "/var/log/v2raya/v2raya.log";
|
|
||||||
V2RAYA_V2RAY_BIN = pkgs.lib.getExe pkgs.xray;
|
|
||||||
V2RAY_LOCATION_ASSET = "/etc/v2raya";
|
|
||||||
XRAY_LOCATION_ASSET = "/etc/v2raya";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc = {
|
|
||||||
"v2raya/ru_geoip.dat".source = "${inputs.russia-blocked-geoip}/geoip.dat";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user