diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-23 16:49:51 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-23 17:10:01 -0400 |
commit | ef71e3290916583973724316e815cee840c1b6d8 (patch) | |
tree | 90c3861e8f2e3cde88dbcbffc2c8b931aa6f93af /gnu/services/networking.scm | |
parent | e682932636f1f35733872d69edc9bf9d9813c03a (diff) | |
download | guix-ef71e3290916583973724316e815cee840c1b6d8.tar guix-ef71e3290916583973724316e815cee840c1b6d8.tar.gz |
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.
Diffstat (limited to 'gnu/services/networking.scm')
-rw-r--r-- | gnu/services/networking.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 4632498357..6ab313b97c 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -1248,7 +1248,11 @@ project's documentation} for more information." "/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 |