summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-23 16:49:51 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-03-23 17:10:01 -0400
commitef71e3290916583973724316e815cee840c1b6d8 (patch)
tree90c3861e8f2e3cde88dbcbffc2c8b931aa6f93af
parente682932636f1f35733872d69edc9bf9d9813c03a (diff)
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.
-rw-r--r--gnu/services/networking.scm6
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