From 86f16a2394a8e71e852343672da7ebfa014e49c7 Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 6 Sep 2025 23:30:14 -0500 Subject: [PATCH] openwebui --- .../services/containers/openwebui/default.nix | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 system-config/services/containers/openwebui/default.nix diff --git a/system-config/services/containers/openwebui/default.nix b/system-config/services/containers/openwebui/default.nix new file mode 100644 index 0000000..4409389 --- /dev/null +++ b/system-config/services/containers/openwebui/default.nix @@ -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"; + }; + }; + + }; +}