Well, I upgraded to nixos 18.09 before its release, so this problem may not be reproduced by others.
Two weeks ago I upgrade to 18.09, and everything seems to work perfectly. But two hours ago I perform another
nixos-rebuild boot --upgrade
Then after rebooted the openvpn plugin of NetworkManager seems not working. It appears:
If I click the vpn item in the networkmanager applet menu, just nothing happened.
If I click the “config vpn” in the applet menu, then a network connections dialog appeared, and then I click the previously created openvpn item in this dialog, it complains that
Could not find VPN plugin for "org.freedesktop.NetworkManager.openvpn"
I have already installed the networkmanager_openvpn package, and configed the NetworkManager plugin as
Some additional information:
I run nm-connection-editor in terminal, and click the previously created openvpn item try to edit it,
then following information appeared in the terminal:
** Message: 22:32:36.877: vpn: (vpnc,/etc/NetworkManager/VPN/nm-vpnc-service.name) file "libnm-vpn-plugin-vpnc.so" not found. Did you install the client package?
** Message: 22:32:36.877: vpn: (fortisslvpn,/etc/NetworkManager/VPN/nm-fortisslvpn-service.name) file "libnm-vpn-plugin-fortisslvpn.so" not found. Did you install the client package?
** Message: 22:32:36.877: vpn: (iodine,/etc/NetworkManager/VPN/nm-iodine-service.name) file "libnm-vpn-plugin-iodine.so" not found. Did you install the client package?
** Message: 22:32:36.877: vpn: (openvpn,/etc/NetworkManager/VPN/nm-openvpn-service.name) file "libnm-vpn-plugin-openvpn.so" not found. Did you install the client package?
** Message: 22:32:36.879: vpn: (l2tp,/etc/NetworkManager/VPN/nm-l2tp-service.name) file "libnm-vpn-plugin-l2tp.so" not found. Did you install the client package?
** Message: 22:32:36.879: vpn: (openconnect,/etc/NetworkManager/VPN/nm-openconnect-service.name) file "libnm-vpn-plugin-openconnect.so" not found. Did you install the client package?
It seems that NetworkManager cannot find the shared object file for the openvpn plugin.
But after checking the files (actually soft links) in /etc/NetworkManager/VPN I find a nm-openvpn-service.name, the content of which is