mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add chat
This commit is contained in:
parent
dba927cf49
commit
749e3f38f0
3 changed files with 30 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
28
modules/nixos/server/chat.nix
Normal file
28
modules/nixos/server/chat.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -17,5 +17,6 @@
|
||||||
./share.nix
|
./share.nix
|
||||||
./vault.nix
|
./vault.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./chat.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue