Skip to content

Commit 65068ca

Browse files
stackptrclaude
andcommitted
fix: add psycopg2 dependency to Open WebUI for PostgreSQL support
The PostgreSQL migration (#363) set DATABASE_URL but the default open-webui package doesn't include the psycopg2 driver. Include the postgres optional dependencies (psycopg2-binary, pgvector). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4e4ce54 commit 65068ca

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

hosts/glyph/services/open-webui.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
{config, ...}: {
1+
{
2+
config,
3+
pkgs,
4+
...
5+
}: {
26
age.secrets.open-webui-env.file = ./../secrets/open-webui-env.age;
37

48
services.open-webui = {
59
enable = true;
10+
package = pkgs.open-webui.overridePythonAttrs (old: {
11+
dependencies = old.dependencies ++ old.optional-dependencies.postgres;
12+
});
613
port = 8888;
714
host = "0.0.0.0";
815
environmentFile = config.age.secrets.open-webui-env.path;

0 commit comments

Comments
 (0)