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 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;

View file

@ -117,6 +117,10 @@
# MODULES #
#
programs.neovim = {
enable = true;
};
modules.hyprland = {
# Enable scripts
scripts = {

View file

@ -106,8 +106,13 @@
# MODULES #
#
# Enable neovim
programs.neovim = {
enable = true;
# Set the hostname for nixd in neovim
programs.neovim.nixd.hostname = "wizlap";
nixd.hostname = "wizlap";
};
# Add monitor configuration to hyprland
modules.hyprland = {