diff options
| author | Fuwn <[email protected]> | 2025-02-16 10:07:31 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-16 10:07:31 +0000 |
| commit | 5185a76c3361c62acd703b289fc34df1295b61c3 (patch) | |
| tree | 0a54264d8b64ff846d9336e9b1886261873459c2 | |
| parent | fix(cli): strengthen superuser escalation check (diff) | |
| download | pia.nix-main.tar.xz pia.nix-main.zip | |
| -rw-r--r-- | flake.nix | 15 | ||||
| -rw-r--r-- | yae.json | 10 |
2 files changed, 23 insertions, 2 deletions
@@ -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" + } +} |