misc fixes

This commit is contained in:
2024-10-07 21:46:36 -04:00
parent 2cb40a775c
commit 1c2dd9bcb0
7 changed files with 42 additions and 16 deletions

19
services/llm.nix Normal file
View 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";
};
}

View File

@@ -5,7 +5,7 @@
...
}:
let
heap_size = "6144M";
heap_size = "3000M";
in
{
nixpkgs.config.allowUnfreePredicate =

View File

@@ -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 = [