feat: Added nil_ls and added lmstudio to aichat

This commit is contained in:
uttarayan21
2025-08-07 17:46:49 +05:30
parent 4be00f3108
commit ade668cf47
3 changed files with 19 additions and 6 deletions

View File

@@ -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 = ''

View File

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

View File

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