aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
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