Is there any solution to use /etc/wireguard/wg0.conf
for both, wg-quick
and systemd-networkd
.
Following this example I have to duplicate configuration, but I want to store config in one place.
How to achieve that?
You could do a soft link. ln -s /etc/wireguard/wg0.conf /etc/systemd/network/99-wg0.netdev
Then you can edit from /etc/wireguard/wg0.conf and it changes at /etc/systemd/network/99-wg0.netdev, as it is the same file.