utils: Add file-object-or-file-config?.

This commit is contained in:
Hilton Chain committed 2026-06-01 20:03:28 +08:00
1 parent c660951855
commit 05f69100c3
7 files changed
+120 -62

No files matched your search

+5 -2
View File
@@ -274,14 +274,17 @@ headers. This can expose sensitive information in your logs.")
(file-like wakapi-bin)
"The wakapi package.")
(config
gexp
file-object-or-file-config
"Association list of Wakapi configurations.")
(no-serialization))
(define home-wakapi-shepherd-service
(match-record-lambda <home-wakapi-configuration>
(wakapi config)
(let ((config-file (yaml-file "wakapi.yaml" config)))
(let ((config-file
(if (file-config? config)
(yaml-file "wakapi.yaml" config)
config)))
(list (shepherd-service
(documentation "Run wakapi.")
(provision '(wakapi))