Hi,
On 18/10/2025 07:26, Simen Endsjø wrote:
I'm running SearXNG as a home rootless podman service. I want to share
the configuration file and cache directory from my host. Setting up
~/.config/searxng/settings.yml and ~/.cache/searxng using
home-files-service-type works, but when starting the container, the
container takes ownership of the folders/files with it's own
searxng:searxng user (166512:166512). When I reconfigure my home again,
home-files-service-type fails because it doesn't have access to the location.
I haven't thought about how you'd integrate this with your Guix
configuration,
but my approach would be to make ~/.config/searxng world-readable and
mount it read-only into the container without the `U` option that
changes the
ownership. Then I would create a podman volume for the cache and mount
that with the `U` option instead of mounting a directory. Apart from
creating
the cache volume if it does not exist, your Guix configuration does not need
to touch this volume so it should not matter that the ownership changes.
I would be interested to hear if this approach works for you.
Ray.