Hi,
I’m currently playing around with a temporary root filesystem. To not lose all my connected bluetooth devices on boot I tried to symlink the /var/lib/bluetooth directory to a persistent location like this:
{
systemd.tmpfiles.rules = [
"L /var/lib/bluetooth - - - - /persist/var/lib/bluetooth"
];
}
But this results in bluetooth.service failing with
Apr 14 23:00:28 nixps (uetoothd)[25990]: bluetooth.service: Failed to set up special execution directory in /var/lib: Not a directory
Apr 14 23:00:28 nixps (uetoothd)[25990]: bluetooth.service: Failed at step STATE_DIRECTORY spawning /nix/store/sl9xzfjrrs3k47apx1zs533cji9625y4-bluez-5.66/libexec/bluetooth/bluetoothd: Not a directory
It seems like the service does not like symlinks. Is there another way to somehow link this directory somewhere into /persist or tell the service to write there?
Thanks in advance for your help