alpaca: persist settings to disk

This commit is contained in:
2025-07-24 07:39:02 +00:00
parent 42546baadc
commit 5552decca6

View File

@@ -8,6 +8,9 @@
# it creates a config dir, `~/.config/com.jeffser.Alpaca`, but apparently empty
#
# TODO: configure ollama connection details statically
# - until then, on first run:
# - select the non-"managed" ollama option.
# - connect to http://10.0.10.22:11434
# TODO: update the nix package 6.1.7 -> 7.5.2
# - i.e. review <https://github.com/NixOS/nixpkgs/pull/420698>
{ pkgs, ... }:
@@ -43,7 +46,18 @@
persist.byStore.ephemeral = [
".cache/com.jeffser.Alpaca" #< ?
".local/share/com.jeffser.Alpaca" #< chats? also downloaded ollama data
];
persist.byStore.private = [
# alpaca.db: sqlite3 database with the following tables:
# - attachment
# - chat
# - instances
# - message
# - model_preferences
# - preferences
# - tool_parameters
".local/share/com.jeffser.Alpaca"
];
};
}