aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/ollama.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/ollama.nix')
-rw-r--r--nix/modules/ollama.nix8
1 files changed, 8 insertions, 0 deletions
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";
+ };
+}