When using Ferdi without an online account it creates a server.sqlite database to store inforation about its workspaces and services.
I already have a module that works but the way I create and populate the database is to directly generate it in the config folder.
I was wondering if there is a way to create and write to the database in the store and then symlink it instead of creating it in the config folder directly like I do currently.
Not a fully worked example, but you could write a derivation with stdenv.mkDerivation that just runs those commands in the buildPhase, then puts the file in $out/share/ferdi/server.sqlite or something during installPhase, and then specify:
Or add a ln -s to the installPackages section or whatever it is called by hand. I don’t believe there is machinery to put auxilliary config files from packages like this in ~/.config automatically.
Yes, Ferdi only writes to the database when editing services or workspaces and when no user information is found.
So there are no problems with the database being read only.