Change default permissions of volume mounts

Currently I try to share a folder (storage volume) across some containers.

devices:
  certs:
    path: /var/cert
    pool: storage1
    source: certificates
    type: disk

The volume gets mounted as expected:

[root@nixos:~]# ls -l /var | grep cert
drwxrwx--- 4 root  root  4096 May 18 22:46 cert

I wonder if there’s a way to grant read, write, execute right to “others”?

chmod 777 /var/cert shoud work fine

Is there another possibility without further container interaction?

Not at this time. We could in theory add a config option for it, but the exact behavior may get confusing (do we re-apply it every time we mount it, is it a one-off thing, …), so no plans on adding such an option right now.