From 7083deb773b9c12ef56da6a934f9f0daca95d8ba Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 29 Jan 2025 14:11:40 -0800 Subject: add affinity system --- nix/modules/ollama.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nix/modules/ollama.nix (limited to 'nix/modules/ollama.nix') diff --git a/nix/modules/ollama.nix b/nix/modules/ollama.nix new file mode 100644 index 0000000..f9f4dc9 --- /dev/null +++ b/nix/modules/ollama.nix @@ -0,0 +1,8 @@ +{ config, lib, ... }: +{ + services.ollama = { + enable = lib.mkDefault config.monorepo.profiles.server.enable; + acceleration = "cuda"; + host = "0.0.0.0"; + }; +} -- cgit