fix(neovim): better default for ollama and disable neovim in the module

Of course, enable neovim in the desktop and laptop configs
This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2025-01-16 20:25:32 -03:00
parent 6cde9353ab
commit efe37836bd
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
3 changed files with 17 additions and 4 deletions

View file

@ -8,7 +8,12 @@
let
inherit (lib) types mkOption;
ollamaPackage =
if config.programs.neovim.ollama.type == "amd" then pkgs.ollama-rocm else pkgs.ollama-cuda;
if config.programs.neovim.ollama.type == "amd" then
pkgs.ollama-rocm
else if config.programs.neovim.ollama.type == "nvidia" then
pkgs.ollama-cuda
else
pkgs.ollama;
in
{
options.programs.neovim = {
@ -41,7 +46,6 @@ in
config = {
programs.neovim = {
enable = true;
withNodeJs = true;
withPython3 = true;