34 lines
804 B
Nix
34 lines
804 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
options = {
|
|
sysconfig.virtualization.openwebui.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.sysconfig.virtualization.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 = pkgs.open-webui;
|
|
openFirewall = true;
|
|
host = "0.0.0.0";
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|