nmcli connection import type wireguard file "/path/to/wg0.conf"
nmcli connection modify wg0 connection.id "home-vpn"
nmcli connection show home-vpn
Add Wireguard configuration from file to Gnome NetworkManager · GitHub
gist.github.com