feat(nixos/hosts/WhiteRaven/models/vpn.nix, nixos/hosts/WhiteRaven/configuration.nix, flake.nix): Install Vpn
This commit is contained in:
1 parent
3c5379b6a9
commit
716477f2fa
3 files changed
+31
-1
No files matched your search
@@ -52,6 +52,10 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
pkgs-unstable = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
inherit inputs system;
|
inherit inputs system;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
@@ -14,9 +14,9 @@
|
|||||||
./models/env.nix
|
./models/env.nix
|
||||||
./bootloader.nix
|
./bootloader.nix
|
||||||
./grab.nix
|
./grab.nix
|
||||||
./models/Server/zeroTierOne.nix
|
|
||||||
./models/docker.nix
|
./models/docker.nix
|
||||||
./flackePkgs.nix
|
./flackePkgs.nix
|
||||||
|
./models/vpn.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user