From 2c20cd4eff905663b29134cb9112b74753c4cd9b Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 13 Jan 2024 20:52:12 +0800 Subject: [PATCH] services: iwd: Use default environment variables. * rosenthal/services/networking.scm (iwd-shepherd-service) [#:environment-variables]: Remove field. --- rosenthal/services/networking.scm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/rosenthal/services/networking.scm b/rosenthal/services/networking.scm index f4c99b5..db508b5 100644 --- a/rosenthal/services/networking.scm +++ b/rosenthal/services/networking.scm @@ -336,12 +336,7 @@ list, power save will be disabled.")) (match-record config (iwd resolvconf log-file enable-network-configuration? name-resolving-service) - (let ((conf (serialize-iwd-configuration config)) - (environment - (if (eqv? name-resolving-service 'resolvconf) - #~(list (string-append - "PATH=" #$(file-append resolvconf "/sbin"))) - #~(default-environment-variables)))) + (let ((conf (serialize-iwd-configuration config))) (list (shepherd-service (documentation "Run iwd") (provision `(,@(if enable-network-configuration? @@ -351,8 +346,7 @@ list, power save will be disabled.")) (requirement '(user-processes dbus-system)) (start #~(make-forkexec-constructor (list (string-append #$iwd "/libexec/iwd")) - #:log-file #$log-file - #:environment-variables #$environment)) + #:log-file #$log-file)) (stop #~(make-kill-destructor)) (actions (list (shepherd-configuration-action "/etc/iwd/main.conf"))))))))