feat(nixos/hosts/WhiteRaven/models/vpn.nix, nixos/hosts/WhiteRaven/configuration.nix, flake.nix): Install Vpn

This commit is contained in:
Kirill committed 2025-11-03 13:30:07 +03:00
1 parent 3c5379b6a9
commit 716477f2fa
3 files changed
+31 -1

No files matched your search

+1 -1
View File
@@ -14,9 +14,9 @@
./models/env.nix
./bootloader.nix
./grab.nix
./models/Server/zeroTierOne.nix
./models/docker.nix
./flackePkgs.nix
./models/vpn.nix
];
+26
View File
@@ -0,0 +1,26 @@
{ pkgs, pkgs-unstable, config, ...}: {
systemd.services.v2raya = {
enable = true;
description = "v2rayA gui client";
after = [ "network.target" ];
serviceConfig = {
Restart = "always";
ExecStart = "${pkgs-unstable.v2raya}/bin/v2rayA";
};
path = with pkgs; [ iptables bash iproute2 ];
wantedBy = [ "multi-user.target" ];
environment = {
V2RAYA_LOG_FILE = "/var/log/v2raya/v2raya.log";
V2RAY_LOCATION_ASSET = "/etc/v2raya";
XRAY_LOCATION_ASSET = "/etc/v2raya";
};
};
environment.etc = {
"v2raya/ru_geoip.dat".source = pkgs.fetchurl {
name = "geoip.dat";
url = "https://github.com/runetfreedom/russia-blocked-geoip/releases/download/202509251525/geoip.dat";
hash = "sha256-bhz32BOLoqq8yYe8tXWQRkqUiDMa4jAuhLjDfcyF9d4=";
};
};
}