summaryrefslogtreecommitdiff
path: root/modules/sys/features/ollama.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sys/features/ollama.nix')
-rw-r--r--modules/sys/features/ollama.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/sys/features/ollama.nix b/modules/sys/features/ollama.nix
new file mode 100644
index 0000000..0989419
--- /dev/null
+++ b/modules/sys/features/ollama.nix
@@ -0,0 +1,21 @@
+{ pkgs, ... }:
+{
+ fileSystems."/models" = {
+ device = "/home/ollama";
+ fsType = "none";
+ options = [ "bind" ];
+ };
+
+ services.ollama = {
+ enable = true;
+ package = pkgs.ollama-rocm;
+ loadModels = [
+ "deepseek-r1:14b"
+ "qwen3:14b"
+ "qwen3-coder:30b"
+ ];
+ syncModels = true;
+ user = "ollama";
+ models = "/models";
+ };
+}