Org-roam nvim db rebuilds on every launch when managed by nvf

I am having this issue where org-roam rebuilds the db every re-launch when using it under nvf. As I have a lot of notes this is causing startup time’s of around 30+ seconds.

Just to be clear this issue is not present when running a standard lua config on my work MAC. Just my nix machine.

I have tried leaving it in it’s default location under nvf in ~/.local/share/nvf/org-roam.nvim/db but the issue persist. Below I have I remapped to my home folder, but no DB appears. I have also tried setting it as the default location for org-roam as per their docs of ~/.local/share/nvim/org-roam.nvim/db and the same issue appears.

I have also tried moving the db location to vim.luaConfigRC.extraPlugins at the bottom of my config and the same issue persists.

  # Org Roam
  vim.lazy.plugins."org-roam.nvim" = {
    package = pkgs.vimPlugins.org-roam-nvim;
    setupModule = "org-roam";
    setupOpts = {
      # Default dir where to store new notes
      directory = "~/Dropbox/";
      # This is needed to import existing notes
      org_files = [ "~/Dropbox/40-49_Career/**/*.org" ];
      database = {
        path = "~/OrgRoamNvimDB/db";
        update_on_save = true;
        persist = true;
      };
    };

Another strange thing, I did did run a search to see if I could find the db being written to a strange location but I cannot? Could it just be in memory and not being written to disk? sudo find / -type f -name "db" 2>/dev/null