nixos/open-webui: try to fix the database readonly issue

Co-authored-by: Tim <git.t@betsumei.com>
This commit is contained in:
Pol Dellaiera
2025-08-06 16:01:48 +02:00
co-authored by Tim
parent 0b0c68c77d
commit af749a3a10
+4 -4
View File
@@ -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;