nixos/tabbyapi: add writable HOME and cache

This commit is contained in:
BatteredBunny
2026-06-27 15:22:10 +03:00
parent a05d7f9e12
commit d384512ee8
@@ -167,6 +167,13 @@ in
wantedBy = [ "multi-user.target" ];
description = "TabbyAPI - OAI compatible server for Exllama";
# Triton & huggingface downloader need writable cache folders
environment = {
HOME = "/var/lib/tabbyapi";
XDG_CACHE_HOME = "/var/lib/tabbyapi/.cache";
TRITON_CACHE_DIR = "/tmp/triton";
};
serviceConfig = {
ExecStart = "${lib.getExe cfg.package} --config=${configFile}";
Restart = "on-failure";