about summary refs log tree commit diff stats
path: root/modules/by-name/ol/ollama/module.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/ol/ollama/module.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/by-name/ol/ollama/module.nix b/modules/by-name/ol/ollama/module.nix
new file mode 100644
index 00000000..418a1851
--- /dev/null
+++ b/modules/by-name/ol/ollama/module.nix
@@ -0,0 +1,22 @@
+{
+  config,
+  lib,
+  ...
+}: let
+  cfg = config.soispha.services.ollama;
+in {
+  options.soispha.services.ollama = {
+    enable = lib.mkEnableOption "ollama";
+  };
+
+  config = lib.mkIf cfg.enable {
+    soispha.impermanence.directories = [
+      config.services.ollama.home
+    ];
+
+    services.ollama = {
+      enable = true;
+      # acceleration = "rocm";
+    };
+  };
+}