From 36e429a51f31f8ce09526fd5f4b73000f95a6d62 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Thu, 17 Apr 2025 14:31:35 +0200 Subject: [PATCH] Ollama --- nixos/wsl.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/wsl.nix b/nixos/wsl.nix index 3e2acc0..54b2bd4 100644 --- a/nixos/wsl.nix +++ b/nixos/wsl.nix @@ -62,6 +62,13 @@ clean.extraArgs = "--keep-since 4d --keep 3"; flake = "/home/nixos/nixos-config"; }; + services.ollama = { + enable = true; + loadModels = [ "llama3.1" ]; + home = "/home/nixos/ollama"; + user = "ollama"; + group = "ollama"; + }; fonts.packages = with unstable-pkgs; [ #TODO change to pkgs when 25.05 comes out nerd-fonts.jetbrains-mono font-awesome