From c6e9b79ec98c5a272aa11fa7a1a0c3b83d4a0cd2 Mon Sep 17 00:00:00 2001 From: albert Date: Tue, 17 Dec 2024 20:53:54 +0100 Subject: [PATCH] Testing ollama.nvim --- home-manager/common/software/cli/nixvim.nix | 3 +++ nixos/common/services/ollama.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/home-manager/common/software/cli/nixvim.nix b/home-manager/common/software/cli/nixvim.nix index 2e93c3e2..6eaab7d2 100644 --- a/home-manager/common/software/cli/nixvim.nix +++ b/home-manager/common/software/cli/nixvim.nix @@ -39,6 +39,9 @@ ollama = { enable = true; model = "vanilj/Phi-4"; + url = "http://127.0.0.1:11434"; + action = "display"; + serve.onStart = true; }; lsp-lines.enable = true; crates-nvim.enable = true; diff --git a/nixos/common/services/ollama.nix b/nixos/common/services/ollama.nix index ca73b905..82825a00 100644 --- a/nixos/common/services/ollama.nix +++ b/nixos/common/services/ollama.nix @@ -1,6 +1,7 @@ { pkgs, ... }: { services.ollama = { enable = true; + openFirewall = true; loadModels = [ "vanilj/Phi-4" ];