Compare commits

...

2 commits

Author SHA1 Message Date
Felix Buehler
cf99262194 service/meeting: move backup exclude
Some checks are pending
/ Build Nix targets (push) Waiting to run
2026-03-02 23:23:33 +01:00
Felix Buehler
610b684b34 service/llm: init
Some checks failed
/ Build Nix targets (push) Has been cancelled
2026-03-02 23:23:05 +01:00
5 changed files with 32 additions and 1 deletions

View file

@ -16,6 +16,7 @@ in
sshKeyFile = secrets."borgbackup/ssh_key".path; sshKeyFile = secrets."borgbackup/ssh_key".path;
paths = [ "/" ]; paths = [ "/" ];
}; };
llm.enable = true;
vpn.enable = true; vpn.enable = true;
}; };
} }

View file

@ -119,7 +119,6 @@ in
"/home/*/.gvfs" "/home/*/.gvfs"
"/home/*/.local/share/Trash" "/home/*/.local/share/Trash"
"/home/*/.thumbnails" "/home/*/.thumbnails"
"/home/*/.config/Element/Cache"
# self-defined # self-defined
"/data/tmp" "/data/tmp"

View file

@ -19,6 +19,7 @@
./homepage ./homepage
./homer ./homer
./initrd-ssh ./initrd-ssh
./llm
./loki ./loki
./matrix-bot ./matrix-bot
./media ./media

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
];
};
}

View file

@ -19,5 +19,9 @@ in
mumble mumble
teamspeak6-client teamspeak6-client
]; ];
my.services.backup.exclude = [
"/home/*/.config/Element/Cache"
];
}; };
} }