{ config, pkgs, lib, ... }: { config = lib.mkIf config.wireguard.enable { networking.wireguard.interfaces.wg0.peers = lib.mkIf config.wireguard.roaming [ { # audron computer publicKey = "okZQ5cMSu4+M3IKp1yIBuknmAKEzJLKe8tpVeY46phU="; allowedIPs = [ "10.10.0.10/32" "2a0f:9400:8020:beef::10/128" "fd15:3d8c:d429:beef::10/128" ]; } { # audron fritzbox publicKey = "PO8NxZynL76xsWPi+ApgVryEJBdxOj9o+bscWXh71Vw="; presharedKey = "m/xbu5KWmIdgyushQzauYzW4QLSloLQ26nIjfzZgpdk="; endpoint = "f0fk2o183tadohu6.myfritz.net:53984"; persistentKeepalive = 25; allowedIPs = [ "192.168.144.0/24" ]; } { # audron phone publicKey = "LDzzGWlBmy9FQ/+bNAaLM2TmS8OR291uVTntwmb/gmM="; allowedIPs = [ "10.10.0.15/32" "2a0f:9400:8020:beef::15/128" "fd15:3d8c:d429:beef::15/128" ]; } { # d3fus computer publicKey = "CoMGgzL31yb0ozA17OuF0IDpkV2dnJ7j74itaQb0k1U="; allowedIPs = [ "10.10.0.20/32" "2a0f:9400:8020:beef::20/128" "fd15:3d8c:d429:beef::20/128" ]; } { # d3fus phone publicKey = "SMBYdQ1DntoeC2tokRD3zYLID4PbjhRrmrMSKG8x8Ug="; allowedIPs = [ "10.10.0.22/32" "2a0f:9400:8020:beef::22/128" "fd15:3d8c:d429:beef::22/128" ]; } { # d3fus nass publicKey = "+74+QbspkULHz626YPqpOfe72dJIF4Hx4FeVAcuj4gk="; persistentKeepalive = 25; allowedIPs = [ "10.10.0.21/32" "2a0f:9400:8020:beef::21/128" "fd15:3d8c:d429:beef::21/128" ]; } { # d3fus fritzbox publicKey = "F81JqOjPIEdgJoznvDyp04JJ9nvT1XvkLX3KWeW6Yi4="; presharedKey = "MeWlA+udiJEX5c+GMnZs3YT8GmyBbVmAQiGje/1Ymfw="; endpoint = "awvkepyheen2ctg0.myfritz.net:52508"; persistentKeepalive = 25; allowedIPs = [ "192.168.178.0/24" ]; } ]; }; }