overlays refactor

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-06-17 19:48:31 +02:00
parent fbd045d53e
commit d2d1ce7830
103 changed files with 156 additions and 323 deletions

View File

@@ -1,9 +1,9 @@
{ pkgs, hyper, ... }:
{ pkgs, ... }@all: with all;
{
services.ollama = {
package = if hyper.nvidia.enable then pkgs.ollama-cuda else pkgs.ollama;
enable = true;
acceleration = pkgs.lib.mkIf hyper.nvidia.enable "cuda";
acceleration = lib.mkIf hyper.nvidia.enable "cuda";
host = if hyper.host == "NxACE" then "0.0.0.0" else "127.0.0.1";
port = 11434;
environmentVariables = {