misc fixes
This commit is contained in:
19
services/llm.nix
Normal file
19
services/llm.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
service_configs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
home = service_configs.ollama.data_dir + "/home";
|
||||
models = service_configs.ollama.data_dir + "/home/models";
|
||||
environmentVariables = {
|
||||
OLLAMA_LLM_LIBRARY = "cpu_avx2";
|
||||
};
|
||||
host = "0.0.0.0";
|
||||
port = service_configs.ports.ollama;
|
||||
user = "ollama";
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}:
|
||||
let
|
||||
heap_size = "6144M";
|
||||
heap_size = "3000M";
|
||||
in
|
||||
{
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ service_configs, ... }:
|
||||
{ service_configs, config, ... }:
|
||||
{
|
||||
virtualisation.quadlet = {
|
||||
containers = {
|
||||
@@ -31,11 +31,13 @@
|
||||
containerConfig = {
|
||||
image = "lscr.io/linuxserver/qbittorrent:latest";
|
||||
name = "qbittorrent";
|
||||
autoUpdate = "registry";
|
||||
|
||||
environments = {
|
||||
WEBUI_PORT = service_configs.ports.torrent;
|
||||
DOCKER_MODS = "ghcr.io/gabe565/linuxserver-mod-vuetorrent";
|
||||
PUID = 1000;
|
||||
PGID = 1000;
|
||||
# PUID = 1000;
|
||||
PGID = config.users.groups.${config.services.jellyfin.group}.gid;
|
||||
};
|
||||
|
||||
volumes = [
|
||||
|
||||
Reference in New Issue
Block a user