From 2e3affd1932632e80a6c80fcedabd497970873d3 Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 28 Oct 2023 11:48:40 +0800 Subject: [PATCH] services: iwd: Only provision networking when configured. * rosenthal/services/networking.scm (iwd-shepherd-service)[provision]: Provision networking when network configuration enabled. --- rosenthal/services/networking.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rosenthal/services/networking.scm b/rosenthal/services/networking.scm index 975e24e..aa3e715 100644 --- a/rosenthal/services/networking.scm +++ b/rosenthal/services/networking.scm @@ -343,7 +343,8 @@ list, power save will be disabled.")) (define (iwd-shepherd-service config) (match-record config - (iwd resolvconf log-file name-resolving-service) + (iwd resolvconf log-file + enable-network-configuration? name-resolving-service) (let ((conf (serialize-iwd-configuration config)) (environment (if (eqv? name-resolving-service 'resolvconf) @@ -352,7 +353,10 @@ list, power save will be disabled.")) #~(default-environment-variables)))) (list (shepherd-service (documentation "Run iwd") - (provision '(iwd networking)) + (provision `(,@(if enable-network-configuration? + '(networking) + '()) + iwd)) (requirement '(user-processes dbus-system)) (start #~(make-forkexec-constructor (list (string-append #$iwd "/libexec/iwd"))