services: network-manager: Set LINUX_MODULE_DIRECTORY environment variable.

Fixes <https://issues.guix.gnu.org/62409>.

* gnu/services/networking.scm (network-manager-shepherd-service): Set the
LINUX_MODULE_DIRECTORY environment variable.
This commit is contained in:
Maxim Cournoyer 2023-03-23 16:49:51 -04:00
parent e682932636
commit ef71e32909
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1248,7 +1248,11 @@ (define (network-manager-shepherd-service config)
"/lib/NetworkManager/VPN")
;; Override non-existent default users
"NM_OPENVPN_USER="
"NM_OPENVPN_GROUP="))))
"NM_OPENVPN_GROUP="
;; Allow NetworkManager to find the modules.
(string-append
"LINUX_MODULE_DIRECTORY="
"/run/booted-system/kernel/lib/modules")))))
;; XXX: Despite the "online" name, this doesn't guarantee
;; WAN connectivity, it merely waits for NetworkManager
;; to finish starting-up. This is required otherwise