I’m new to nix/NixOS. I am trying to setup a prosody server with SQLite backend. But it seems, that a dependency, namely the luadbi
SQL driver is missing.
For example, when I try to add a user:
prosodyctl adduser hallo@example.com
sql error Error in SQL transaction: ...c86p9krcivkh4jaa5q-lua5.2-luadbi-0.5/lib/lua/5.2/DBI.lua:52: Cannot load driver SQLite3. Available drivers are: (None)
example.com:storage_sql error Unable to read from database accounts store for hallo: ...c86p9krcivkh4jaa5q-lua5.2-luadbi-0.5/lib/lua/5.2/DBI.lua:52: Cannot load driver SQLite3. Available drivers are: (None)
My setup looks like this:
environment.systemPackages = with pkgs; [
sqlite
lua52Packages.luasqlite3
(pkgs.prosody.override {
withDBI = true; # is the default anyway, I believe?
})
];
services.prosody = {
enable = true;
modules = {
carbons = true;
mam = true;
pep = true;
};
extraConfig = ''
authentication = "internal_hashed"
storage = "sql"
sql = { driver = "SQLite3", database = "prosody.sqlite" }
'';
}
What am I missing?