--wip-- [skip ci]
This commit is contained in:
parent
62497d4584
commit
598cbb4750
4 changed files with 18 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, nixosConfig, ... }:
|
||||
let
|
||||
vp = pkgs.vimPlugins;
|
||||
in
|
||||
|
|
@ -403,8 +403,19 @@ in
|
|||
plugin = vp.ollama-nvim;
|
||||
type = "lua";
|
||||
config = ''
|
||||
function readAll(file)
|
||||
local f = assert(io.open(file, "rb"))
|
||||
local content = f:read("*all")
|
||||
f:close()
|
||||
return content
|
||||
end
|
||||
local url = readAll("${nixosConfig.age.secrets.ollama.path}")
|
||||
|
||||
print(vim.inspect(url))
|
||||
|
||||
local ollama = require("ollama")
|
||||
ollama:setup({
|
||||
url = url,
|
||||
model = "codegemma:7b"
|
||||
})
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue