From ade668cf47b3a88ef08af87bc8282e024324f7e8 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Thu, 7 Aug 2025 17:46:49 +0530 Subject: [PATCH] feat: Added nil_ls and added lmstudio to aichat --- darwin/kuro/configuration.nix | 4 ++-- home/programs/aichat.nix | 11 +++++++++++ neovim/default.nix | 10 ++++++---- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/darwin/kuro/configuration.nix b/darwin/kuro/configuration.nix index bccd11dc..c49fb60b 100644 --- a/darwin/kuro/configuration.nix +++ b/darwin/kuro/configuration.nix @@ -15,11 +15,11 @@ trusted-users = ["root" "fs0c131y"]; substituters = [ "https://nix-community.cachix.org" - "https://sh.darksailor.dev" + # "https://sh.darksailor.dev" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" - "mirai:bcVPoFGBZ0i7JAKMXIqLj2GY3CulLC4kP7rQyqes1RM=" + # "mirai:bcVPoFGBZ0i7JAKMXIqLj2GY3CulLC4kP7rQyqes1RM=" ]; }; extraOptions = '' diff --git a/home/programs/aichat.nix b/home/programs/aichat.nix index 6e569cc3..f23179d9 100644 --- a/home/programs/aichat.nix +++ b/home/programs/aichat.nix @@ -99,6 +99,17 @@ } ]; } + { + type = "openai-compatible"; + name = "LMStudio"; + api_base = "http://localhost:1234/v1"; + models = [ + { + name = "openai/gpt-oss-20b"; + type = "chat"; + } + ]; + } { type = "openai"; name = "openai"; diff --git a/neovim/default.nix b/neovim/default.nix index 48ccf5a5..37f5511f 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -495,10 +495,12 @@ in { gopls.enable = true; nil_ls = { enable = true; - settings.formatting.command = [ - "${pkgs.alejandra}/bin/alejandra" - ]; - # nix.flake.autoArchive = true; + settings = { + formatting.command = [ + "${pkgs.alejandra}/bin/alejandra" + ]; + nix.flake.autoArchive = true; + }; }; marksman.enable = true; neocmake.enable = true;