openwebui
This commit is contained in:
32
system-config/services/containers/openwebui/default.nix
Normal file
32
system-config/services/containers/openwebui/default.nix
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
{ config, lib, ... }: {
|
||||||
|
|
||||||
|
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.openwebui = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user