nixy/wireguard: add proton vpn free tier

This commit is contained in:
2024-05-06 10:26:51 +02:00
parent 7a647287bb
commit 390d3a3ddb
3 changed files with 39 additions and 0 deletions

View File

@@ -31,6 +31,10 @@
sopsFile = ../common/secrets/wg_preshared.yaml;
};
"wg_privkey_proton" = {
sopsFile = ./secrets/wg_privkey_proton.yaml;
};
"borgbase_enc_key" = {
sopsFile = ./secrets/borgbase_enc_key.yaml;
owner = config.users.users.akill.name;
@@ -144,6 +148,19 @@
}
];
};
proton = {
ips = [ "10.2.0.2/32" ];
privateKeyFile = config.sops.secrets."wg_privkey_proton".path;
peers = [
{
publicKey = builtins.readFile ../common/wg_pubkey_proton;
allowedIPs = [ "10.2.0.0/24" ];
endpoint = "109.236.81.166:51820";
persistentKeepalive = 25;
}
];
};
};
};