40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ config, lib, nixpkgs-us, ... }: {
|
|
|
|
options = {
|
|
sysconfig.containers.openwebui.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.containers.openwebui.enable {
|
|
|
|
containers.openwebui = {
|
|
|
|
autoStart = true;
|
|
privateNetwork = true;
|
|
hostAddress = "192.168.100.10";
|
|
localAddress = "192.168.100.33";
|
|
|
|
config = {
|
|
|
|
services.open-webui = {
|
|
enable = true;
|
|
package = let
|
|
pkgs-us = import nixpkgs-us {
|
|
system = "x86_64-linux";
|
|
config.allowUnfree = true;
|
|
};
|
|
in pkgs-us.open-webui;
|
|
|
|
openFirewall = true;
|
|
host = "0.0.0.0";
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|