EXPERIMENT: make wireguard config customizable

This commit is contained in:
2026-04-02 10:02:23 +02:00
parent 86b927b894
commit c23e63bda8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,13 +2,13 @@
# this configuration is for a device on the home network
# it exposes the entire home network to outside peers
{ip, config, pkgs, ...}@inputs: {
{ip}: {
networking = {
firewall.allowedUDPPorts = [56878];
wireguard = {
enable = true;
interfaces.wg0 = {
ips = [ ("192.168.87." ++ ip ++ "/32")];
ips = [ ("192.168.87." + builtins.toString(ip) + "/32")];
listenPort = 56878;
privateKeyFile = "/root/wg.keys";