From e3b567c9fc9acbd0ea165599c445cdd92202d08f Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Fri, 22 Nov 2024 13:27:24 +0530 Subject: [PATCH] fix: Fixed nvim lualine section function and update to minstral for llama.cpp --- flake.lock | 2 +- neovim/nvim.nix | 30 ++++++++++++++++-------------- nixos/mirai/services.nix | 9 +++++++-- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index c268a9bc..69753360 100644 --- a/flake.lock +++ b/flake.lock @@ -1815,7 +1815,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-2CxuQIKuMbth3Z5NG4gvUPa0EZPazSgwOdxbzbfqvwQ=", + "narHash": "sha256-tpoeaZxzGIo1bv/ddxX7qW6RZJEn7kf3ZhnIH4BvJ9o=", "path": "./neovim", "type": "path" }, diff --git a/neovim/nvim.nix b/neovim/nvim.nix index d9b850fe..3bb43a51 100644 --- a/neovim/nvim.nix +++ b/neovim/nvim.nix @@ -74,20 +74,22 @@ in rec { lualine = { enable = true; settings.sections = { - lualine_c = - rawLua - /* - lua - */ - '' - function(bufnr) - local opts = { highlight = true } - return require'nvim-navic'.get_location(opts) - end, - cond = function() - return require'nvim-navic'.is_available() - end - ''; + lualine_c = + rawLua + /* + lua + */ + '' + { + function(bufnr) + local opts = { highlight = true } + return require'nvim-navic'.get_location(opts) + end, + cond = function() + return require'nvim-navic'.is_available() + end + } + ''; }; }; diff --git a/nixos/mirai/services.nix b/nixos/mirai/services.nix index 2eed0e88..39fa7a01 100644 --- a/nixos/mirai/services.nix +++ b/nixos/mirai/services.nix @@ -34,9 +34,14 @@ enable = true; host = "127.0.0.1"; port = 3000; + # model = builtins.fetchurl { + # sha256 = "61834b88c1a1ce5c277028a98c4a0c94a564210290992a7ba301bbef96ef8eba"; + # url = "https://huggingface.co/bartowski/Qwen2.5.1-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5.1-Coder-7B-Instruct-Q8_0.gguf?download=true"; + # }; model = builtins.fetchurl { - sha256 = "61834b88c1a1ce5c277028a98c4a0c94a564210290992a7ba301bbef96ef8eba"; - url = "https://huggingface.co/bartowski/Qwen2.5.1-Coder-7B-Instruct-GGUF/resolve/main/Qwen2.5.1-Coder-7B-Instruct-Q8_0.gguf?download=true"; + name = "mistral-7b-claude-chat"; + sha256 = "03458d74d3e6ed650d67e7800492354e5a8a33aaaeabc80c484e28766814085a"; + url = "https://huggingface.co/TheBloke/Mistral-7B-Claude-Chat-GGUF/resolve/main/mistral-7b-claude-chat.Q8_0.gguf?download=true"; }; }; services.nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [