vps keys fix

This commit is contained in:
Danilo Reyes
2026-02-04 12:39:33 -06:00
parent f01817a15f
commit d7f9ea971c
2 changed files with 6 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ in
{
options.my.services.wireguard.enable = lib.mkEnableOption "WireGuard VPN configuration";
config = lib.mkIf (config.my.services.wireguard.enable && config.my.secureHost) {
sops.secrets."wireguard/private".sopsFile = ../../secrets/wireguard.yaml;
sops.secrets."vps/server/private".sopsFile = ../../secrets/wireguard.yaml;
networking = {
firewall.allowedUDPPorts = [ port ];
nat = {
@@ -27,7 +27,7 @@ in
listenPort = port;
postSetup = "";
postShutdown = "";
privateKeyFile = config.sops.secrets."wireguard/private".path;
privateKeyFile = config.sops.secrets."vps/server/private".path;
peers = [
{
publicKey = "OUiqluRaS4hmGvLJ3csQrnIM3Zzet50gsqtTABaUkH4=";