aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-16 10:07:31 +0000
committerFuwn <[email protected]>2025-02-16 10:07:31 +0000
commit5185a76c3361c62acd703b289fc34df1295b61c3 (patch)
tree0a54264d8b64ff846d9336e9b1886261873459c2 /flake.nix
parentfix(cli): strengthen superuser escalation check (diff)
downloadpia.nix-main.tar.xz
pia.nix-main.zip
chore: Manage remote OpenVPN configurations using YaeHEADmain
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 4421245..8c3f178 100644
--- a/flake.nix
+++ b/flake.nix
@@ -81,10 +81,21 @@
services.openvpn.servers =
let
+ inherit (builtins.fromJSON (builtins.readFile "${self}/yae.json")) openvpn;
+
resources = pkgs.fetchzip {
+ inherit (openvpn) url;
+
name = "pia-vpn-config";
- url = "https://www.privateinternetaccess.com/openvpn/openvpn.zip";
- sha256 = "ZA8RS6eIjMVQfBt+9hYyhaq8LByy5oJaO9Ed+x8KtW8=";
+ sha256 =
+ lib.replaceStrings
+ [
+ "sha256-"
+ ]
+ [
+ ""
+ ]
+ openvpn.sha256;
stripRoot = false;
};
in