vpn: change client

This commit is contained in:
2026-05-27 23:42:04 +03:00
parent 89dfed99cb
commit 16cfa90286
3 changed files with 5 additions and 44 deletions
+5 -21
View File
@@ -1,24 +1,8 @@
{ inputs, pkgs, config, ... }: {
systemd.services.v2raya = {
{
programs.clash-verge = {
enable = true;
description = "v2rayA gui client";
after = [ "network.target" ];
serviceConfig = {
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";
"v2raya/bolt.db".source = config.sops.secrets.vpn_bolt.path;
serviceMode = true;
tunMode = true;
autoStart = true;
};
}