aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/services/mcron.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm
index e907d364da..0e0d07d252 100644
--- a/gnu/services/mcron.scm
+++ b/gnu/services/mcron.scm
@@ -182,9 +182,12 @@ files."
;; set a sane value for 'PATH'.
#:environment-variables
(cons* "GUILE_AUTO_COMPILE=0"
- "PATH=/run/current-system/profile/bin"
- (remove (cut string-prefix? "PATH=" <>)
- (environ)))
+ #$(if home-service?
+ '(environ)
+ '(cons*
+ "PATH=/run/current-system/profile/bin"
+ (remove (cut string-prefix? "PATH=" <>)
+ (environ)))))
#:log-file #$log-file))
(stop #~(make-kill-destructor))