aboutsummaryrefslogtreecommitdiff
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
parentfix(cli): strengthen superuser escalation check (diff)
downloadpia.nix-5185a76c3361c62acd703b289fc34df1295b61c3.tar.xz
pia.nix-5185a76c3361c62acd703b289fc34df1295b61c3.zip
chore: Manage remote OpenVPN configurations using YaeHEADmain
-rw-r--r--flake.nix15
-rw-r--r--yae.json10
2 files changed, 23 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
diff --git a/yae.json b/yae.json
new file mode 100644
index 0000000..3ccf84f
--- /dev/null
+++ b/yae.json
@@ -0,0 +1,10 @@
+{
+ "$schema": "https://raw.githubusercontent.com/Fuwn/yae/refs/heads/main/yae.schema.json",
+ "openvpn": {
+ "url": "https://www.privateinternetaccess.com/openvpn/openvpn.zip",
+ "sha256": "0vxm18gzn7fi7dd85rmj3hnbral568bgczhvgi8cb348lx5i23v4",
+ "hash": "sha256-ZA8RS6eIjMVQfBt+9hYyhaq8LByy5oJaO9Ed+x8KtW8=",
+ "unpack": true,
+ "type": "binary"
+ }
+}