Update hosts/server/configuration.nix

This commit is contained in:
2026-03-27 19:52:58 +00:00
parent fd592ba5de
commit 376d53de40
+12 -12
View File
@@ -84,19 +84,19 @@ services.nfs.server = {
# }; # };
#}; #};
networking.wireguard.enable = true; # networking.wireguard.enable = true;
networking.wireguard.interfaces.wg0 = { # networking.wireguard.interfaces.wg0 = {
ips = [ "10.100.0.254/24" ]; # ips = [ "10.100.0.254/24" ];
listenPort = 51820; # listenPort = 51820;
privateKeyFile = "/etc/wireguard/server.key"; # privateKeyFile = "/etc/wireguard/server.key";
peers = [ # peers = [
{ # {
publicKey = "cA30PTE/2gMbIhtAXaRPJkQeDc7/UWoA6eK3K+Xpsww="; # publicKey = "cA30PTE/2gMbIhtAXaRPJkQeDc7/UWoA6eK3K+Xpsww=";
allowedIPs = [ "10.100.0.2/32" ]; # allowedIPs = [ "10.100.0.2/32" ];
} # }
]; # ];
}; # };
# Allow WireGuard UDP port in firewall # Allow WireGuard UDP port in firewall
networking.firewall.allowedUDPPorts = [ 51820 ]; networking.firewall.allowedUDPPorts = [ 51820 ];