nixy/wireguard: add preshared key

This commit is contained in:
Asmir A 2024-04-20 20:13:27 +02:00
parent 05fbfc7c70
commit 1f065c29be
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -24,6 +24,10 @@
sopsFile = ./secrets/wg_privkey.yaml; sopsFile = ./secrets/wg_privkey.yaml;
}; };
sops.secrets."wg_preshared" = {
sopsFile = ./secrets/wg_preshared.yaml;
};
sops.secrets."borgbase_enc_key" = { sops.secrets."borgbase_enc_key" = {
sopsFile = ./secrets/borgbase_enc_key.yaml; sopsFile = ./secrets/borgbase_enc_key.yaml;
owner = config.users.users.akill.name; owner = config.users.users.akill.name;
@ -129,6 +133,7 @@
peers = [ peers = [
{ {
publicKey = builtins.readFile ../magpie/wg_pubkey; publicKey = builtins.readFile ../magpie/wg_pubkey;
presharedKeyFile = config.sops.secrets."wg_preshared".path;
allowedIPs = ["10.100.0.0/24"]; allowedIPs = ["10.100.0.0/24"];
endpoint = "5.75.229.224:51820"; endpoint = "5.75.229.224:51820";
persistentKeepalive = 25; persistentKeepalive = 25;