diff --git a/hosts/Hevana/default.nix b/hosts/Hevana/default.nix index 2a2f1e8..8a53cda 100644 --- a/hosts/Hevana/default.nix +++ b/hosts/Hevana/default.nix @@ -231,6 +231,10 @@ in vpn = { enable = true; privateKey = config.secrets.services.protonvpn.privateKey; + countries = [ + "Norway" + "Netherlands" + ]; }; }; ssh = { diff --git a/modules/services/qbittorrent.nix b/modules/services/qbittorrent.nix index 786ae96..8f226ad 100644 --- a/modules/services/qbittorrent.nix +++ b/modules/services/qbittorrent.nix @@ -46,6 +46,11 @@ in type = lib.types.str; description = "Wireguard private key."; }; + countries = lib.mkOption { + type = lib.types.listOf lib.types.str; + description = "List of countries to base the VPN out of."; + default = [ "Netherlands" ]; + }; }; }; }; @@ -97,7 +102,7 @@ in VPN_SERVICE_PROVIDER = "protonvpn"; VPN_TYPE = "wireguard"; WIREGUARD_PRIVATE_KEY = config.secrets.services.protonvpn.privateKey; - SERVER_COUNTRIES = "Netherlands"; + SERVER_COUNTRIES = (lib.strings.concatStringsSep "," cfg.vpn.countries); TZ = "America/New_York"; }; ports = [ "${cfg.port}:${cfg.port}" ];