Each item in this array specifies an option in the [WireGuardPeer] section of the unit. See systemd.netdev(5) for details. Use PresharedKeyFile instead of PresharedKey: the nix store is world-readable.
Declarations
Type
list of attribute set of (systemd option)Default
[ ]Example
[
{
AllowedIPs = [
"10.0.0.1/32"
];
Endpoint = "192.168.1.1:51820";
PersistentKeepalive = 15;
PresharedKeyFile = "/etc/wireguard/psk.key";
PublicKey = "27s0OvaBBdHoJYkH9osZpjpgSOVNw+RaKfboT/Sfq0g=";
}
]