home: xdg: Fix compilation warning.

* gnu/home/services/xdg.scm (home-xdg-base-directories-configuration):
Specify field serializer explicitly.

Change-Id: I1b178952e3eb95d3faea38f7cf7a782bc73c0ea5
This commit is contained in:
Sergey Trofimov 2026-01-24 18:42:23 +01:00
parent e20a8accfe
commit 5fdfec9108
No known key found for this signature in database
GPG key ID: 3ADB423B40A20785

View file

@ -108,10 +108,11 @@ like sockets.")
@file{/var/log}, but for user. It is not a part of XDG Base Directory
Specification, but helps to make implementation of home services more
consistent."
(serializer
(lambda (field-name val)
(when (maybe-value-set? val)
(warn-about-deprecation field-name #f #:replacement 'state-home))
(serialize-path field-name val)))
(serialize-path field-name val))))
(state-home
(path "$HOME/.local/state")
"Base directory for programs to store state data that should persist