Question about linking file system files to the nix store

I have a local file that I want to link to /var/lib/iwd but I couldn’t find any explanation on how to do this, could someone explain to me how I would achieve this or link to relevant documentations, much appreciated.

Using systemd.tmpfiles would be the simplest option IMO.

I have a complete example for creating symlinks here Using proton-ge-bin package outside of Steam - #11 by Borgvall. You have to use systemd.tmpfiles rather than systemd.user.tmpfiles.

1 Like

thx! the example made it pretty clear and this ended up working for my use case