service/llm: init
Some checks failed
/ Build Nix targets (push) Has been cancelled

This commit is contained in:
Felix Buehler 2026-03-02 22:29:49 +01:00
parent 8417c46a6d
commit 610b684b34
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# enable local llms
{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.services.llm;
in
{
options.my.services.llm = {
enable = lib.mkEnableOption "Enable llm service";
};
config = lib.mkIf cfg.enable {
services.ollama = {
enable = true;
package = pkgs.unstable.ollama;
};
my.services.backup.exclude = [
config.services.ollama.home
];
};
}