initial commit
This commit is contained in:
commit
4014d5e658
30 changed files with 911 additions and 0 deletions
34
hosts/blobercraft/ai.nix
Normal file
34
hosts/blobercraft/ai.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, config, ... }:
|
||||
{
|
||||
options.ai.enable = lib.mkEnableOption "enable ai services";
|
||||
config = lib.mkIf config.ai.enable {
|
||||
fileSystems."/mnt/priv" = {
|
||||
device = "192.168.50.240:/mnt/tank/Private";
|
||||
fsType = "nfs";
|
||||
options = [ "defaults" ];
|
||||
};
|
||||
|
||||
services.gatus.settings.endpoints = [
|
||||
{
|
||||
name = "open-webui";
|
||||
group = "local";
|
||||
url = "http://0.0.0.0:${config.services.open-webui.port}/System/Ping";
|
||||
interval = "5m";
|
||||
# conditions = [''[BODY] == "Jellyfin Server"'']; # TODO:
|
||||
}
|
||||
];
|
||||
|
||||
services = {
|
||||
ollama = {
|
||||
enable = true;
|
||||
# Optional: preload models, see https://ollama.com/library
|
||||
loadModels = [ "llama3.2:3b" "deepseek-r1:1.5b"];
|
||||
};
|
||||
open-webui = {
|
||||
enable = true;
|
||||
port = 2333;
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue