From 353d8f526a05e1a77366f37e0d78406cdb392e9c Mon Sep 17 00:00:00 2001 From: Kirill Date: Thu, 28 May 2026 16:33:57 +0300 Subject: [PATCH] feat(vpn): Change client --- modules/host/vpn.nix | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/modules/host/vpn.nix b/modules/host/vpn.nix index d24a063..6058899 100644 --- a/modules/host/vpn.nix +++ b/modules/host/vpn.nix @@ -1,23 +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"; + serviceMode = true; + tunMode = true; + autoStart = true; }; }