add open-webui as ai chat ui service
This commit is contained in:
parent
c2884923bb
commit
f66eec7079
4 changed files with 27 additions and 3 deletions
|
|
@ -35,6 +35,7 @@
|
|||
enable = true;
|
||||
unixName = "david";
|
||||
};
|
||||
open-webui.enable = true;
|
||||
};
|
||||
gui.enabled = "cosmic";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
./tailscale.nix
|
||||
./kanata.nix
|
||||
./kvm.nix
|
||||
./open-webui.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
21
nixos/modules/open-webui.nix
Normal file
21
nixos/modules/open-webui.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.youthlic.programs.open-webui;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
youthlic.programs.open-webui = {
|
||||
enable = lib.mkEnableOption "open-webui";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.open-webui = {
|
||||
enable = true;
|
||||
port = 8083;
|
||||
environmentFile = "${config.sops.secrets."open-webui_env".path}";
|
||||
};
|
||||
sops.secrets."open-webui_env" = {
|
||||
format = "yaml";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue