From af749a3a10ae188cc37debe4ece84cdf9ee1a6a7 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 6 Aug 2025 10:42:14 +0200 Subject: [PATCH] nixos/open-webui: try to fix the database readonly issue Co-authored-by: Tim --- nixos/modules/services/misc/open-webui.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/misc/open-webui.nix b/nixos/modules/services/misc/open-webui.nix index 937464fc44d9..21a40ab00d13 100644 --- a/nixos/modules/services/misc/open-webui.nix +++ b/nixos/modules/services/misc/open-webui.nix @@ -89,10 +89,10 @@ in after = [ "network.target" ]; environment = { - STATIC_DIR = "."; - DATA_DIR = "."; - HF_HOME = "."; - SENTENCE_TRANSFORMERS_HOME = "."; + STATIC_DIR = "${cfg.stateDir}/static"; + DATA_DIR = "${cfg.stateDir}/data"; + HF_HOME = "${cfg.stateDir}/hf_home"; + SENTENCE_TRANSFORMERS_HOME = "${cfg.stateDir}/transformers_home"; WEBUI_URL = "http://localhost:${toString cfg.port}"; } // cfg.environment;