Added Fixed Wireguard ips to hosts dns lookup

This commit is contained in:
2026-06-29 18:13:11 +02:00
parent 73ff128705
commit 6668c810d3
5 changed files with 38 additions and 12 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
...
}:
{
sops.secrets."wireguard/${hostName}" = {
sops.secrets."network/wireguard/${hostName}" = {
mode = "0400";
};
@@ -13,7 +13,7 @@
script = ''
set -e
mkdir -p /etc/wireguard
PRIVATE_KEY=$(cat ${config.sops.secrets."wireguard/${hostName}".path})
PRIVATE_KEY=$(cat ${config.sops.secrets."network/wireguard/${hostName}".path})
cat > /etc/wireguard/wg0.conf << EOF
[Interface]
Address = $WG_IP