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
@@ -1,12 +1,12 @@
{ config, hostName, ... }:
{
sops.secrets."wireguard/${hostName}" = {
sops.secrets."network/wireguard/${hostName}" = {
mode = "0400";
};
networking = {
wireguard.interfaces.wg0 = {
privateKeyFile = config.sops.secrets."wireguard/${hostName}".path;
privateKeyFile = config.sops.secrets."network/wireguard/${hostName}".path;
};
firewall.allowedUDPPorts = [ 51820 ];
};