From 517d5df1b639afa465f735f58aa994d5e68e4a3e Mon Sep 17 00:00:00 2001 From: marc Date: Sun, 10 May 2026 20:27:32 +0200 Subject: [PATCH] Added ollama (with cuda) to skaftafell --- hosts/skaftafell/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/skaftafell/default.nix b/hosts/skaftafell/default.nix index 7a759a1..e58e2ea 100644 --- a/hosts/skaftafell/default.nix +++ b/hosts/skaftafell/default.nix @@ -47,6 +47,11 @@ with lib; system.pass.enable = true; system.ssh.enable = true; system.sshfs.enable = true; + system.nvidia = { + enable = true; + intelBusId = "PCI:0:2:0"; + nvidiaBusId = "PCI:0:6:0"; + }; # - Server ---------------------------------- # server.vatnajokull.enable = true; @@ -58,4 +63,11 @@ with lib; dev.docker.enable = true; dev.docker.users = ["marc"]; }; + + # TODO: Move to a module + services.ollama = { + enable = true; + package = pkgs.ollama-cuda; + host = "100.74.218.64"; + }; }