From 5185a76c3361c62acd703b289fc34df1295b61c3 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 16 Feb 2025 10:07:31 +0000 Subject: chore: Manage remote OpenVPN configurations using Yae --- flake.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'flake.nix') 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 -- cgit v1.2.3