open-webui: use unstable nixpkgs package on alexandria

This commit is contained in:
William 2026-05-23 13:30:22 -03:00
parent 22b4611617
commit 13f29c0d7d
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ lib, config, inputs, ... }:
let
mkNginxVHosts = inputs.self.lib.mkNginxVHosts;
in
{
nixpkgs.overlays = [
(final: prev: {
open-webui = (import inputs.nixpkgs {
inherit (prev) system;
config.allowUnfree = true;
}).open-webui;
})
];
services.open-webui = {
enable = true;
environment = {
SCARF_NO_ANALYTICS = "True";
DO_NOT_TRACK = "True";
ANONYMIZED_TELEMETRY = "False";
};
};
services.nginx.virtualHosts = mkNginxVHosts {
domains."ai.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:8080/";
};
}

View file

@ -54,5 +54,10 @@
domain = "notes.baduhai.dev"; domain = "notes.baduhai.dev";
host = "alexandria"; host = "alexandria";
} }
{
name = "open-webui";
domain = "ai.baduhai.dev";
host = "alexandria";
}
]; ];
} }