Closed aacebedo closed 2 years ago
This should work the same as it would in "normal" NixOS.
Something like
services.my-service.nixos.configuration.systemd.services.my-systemd-service.requires = "foo-bar-baz.mount";
IIUC, the in-container systemd will materialize such mount units when it learns about them from the kernel. I suppose this just works; otherwise, you might have to create a service unit that polls.
Great that worked thanks !
Hi
I ported a docker compose setup on Arion and I am facing a small issue. My containers use volumes pointing to remote nfs and iscsi directories. However Arion containers are started before the mounts have been completed. This leads to failing containers.
How can I add some "requires" attributes to systemd units generated by arion ?