Loading
nixos/libreswan: Use StateDirectory to setup ipsec/nss
The systemd manual `systemd.exec(5)` addresses the partly overlapping functionality of the `tmpfiles.d(5)` setting and other, more semantic settings and recommends their use if they fit your needs because these semantic versions offer more guarantees. One of those guarantees is that they are guaranteed to be ready by the time the process starts whereas `tmpfiles.d` can be executed asynchronously. I believe this is the cause of some issues I ran into where I had to manually create the `/var/lib/ipsec/nss` directory. This patch fixed those issues for me.