open-webui: use unstable nixpkgs package on alexandria
This commit is contained in:
parent
22b4611617
commit
13f29c0d7d
2 changed files with 32 additions and 0 deletions
27
aspects/hosts/_alexandria/open-webui.nix
Normal file
27
aspects/hosts/_alexandria/open-webui.nix
Normal 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/";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -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";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue