This commit is contained in:
muon 2025-01-27 20:26:14 +00:00
parent dba927cf49
commit 749e3f38f0
3 changed files with 30 additions and 0 deletions

View file

@ -6,6 +6,7 @@
share = 3004; share = 3004;
vault = 3005; vault = 3005;
git = 3006; git = 3006;
chat = 3007;
search = 8081; search = 8081;
videos = 8082; videos = 8082;

View file

@ -0,0 +1,28 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.chat;
port = config.mods.server.nginx.ports.chat;
in with lib; {
options.mods.server = {
chat = {
enable = mkEnableOption {
default = false;
description = "enables ollama server";
};
};
};
config = mkIf cfg.enable {
services.ollama = {
enable = true;
loadModels = [ "deepseek-r1:7b" ];
};
services.open-webui = {
enable = true;
inherit port;
};
};
}

View file

@ -17,5 +17,6 @@
./share.nix ./share.nix
./vault.nix ./vault.nix
./git.nix ./git.nix
./chat.nix
]; ];
} }