First, update your system packages and install WireGuard:
sudo apt update
sudo apt install wireguard
Ensure your WireGuard configuration file:
Import the configuration using nmcli:
nmcli connection import type wireguard file <path/to/wireguard.conf>
Note: Replace <path/to/wireguard.conf> with the actual path to your WireGuard configuration file.
Verify that the connection has been imported by listing all connections:
nmcli connection show
Check that your WireGuard configuration appears in the list of connections.