feat(open-webui): update configuration
This commit is contained in:
parent
c4bc131bfa
commit
5d22ee3c01
2 changed files with 29 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
../services/samba/home-pc.nix
|
||||
../services/restic/home-pc.nix
|
||||
../services/pcscd.nix
|
||||
../services/open-webui.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
|
@ -1,9 +1,36 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
disabledModules = [
|
||||
"services/misc/ollama.nix"
|
||||
"services/misc/open-webui.nix"
|
||||
];
|
||||
|
||||
imports = [
|
||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/ollama.nix"
|
||||
"${inputs.nixpkgs-unstable}/nixos/modules/services/misc/open-webui.nix"
|
||||
];
|
||||
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.ollama;
|
||||
acceleration = "rocm";
|
||||
rocmOverrideGfx = "10.3.1";
|
||||
};
|
||||
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.open-webui;
|
||||
host = "0.0.0.0";
|
||||
port = 11111;
|
||||
environment = {
|
||||
WEBUI_AUTH = "False";
|
||||
OLLAMA_API_BASE_URL = "http://127.0.0.1:${toString config.services.ollama.port}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue