mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-01-08 19:40:38 +00:00
services: iwd: Only provision networking when configured.
* rosenthal/services/networking.scm (iwd-shepherd-service)[provision]: Provision networking when network configuration enabled.
This commit is contained in:
parent
d47daea1e4
commit
2e3affd193
@ -343,7 +343,8 @@ (define add-iwd-package
|
||||
|
||||
(define (iwd-shepherd-service config)
|
||||
(match-record config <iwd-configuration>
|
||||
(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 @@ (define (iwd-shepherd-service config)
|
||||
#~(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"))
|
||||
|
Loading…
Reference in New Issue
Block a user