feat: changed some stuff

This commit is contained in:
Nick 2025-01-20 23:33:35 -06:00
parent 376c1d7b18
commit c67e864d40
145 changed files with 143 additions and 70 deletions

0
home/modules/gui/apps/ide/default.nix Normal file → Executable file
View file

View file

@ -1,8 +1,35 @@
{
enabled = true;
default_model = {
provider = "zed.dev";
model = "claude-3-5-sonnet-latest";
flake,
...
}:
let
inherit (flake.config.services.instances)
ollama
web
;
service = ollama;
localhost = web.localhost.address0;
in
{
assistant = {
enabled = true;
default_model = {
provider = "zed.dev";
model = "claude-3-5-sonnet-latest";
};
version = "2";
};
assistant1 = {
enabled = true;
default_model = {
provider = "ollama";
model = "qwen2.5-coder:7b";
};
version = "2";
};
language_models = {
ollama = {
api_url = "http://${localhost}:${builtins.toString service.ports.port1}";
};
};
version = "2";
}

View file

@ -6,7 +6,11 @@
}:
let
configPath = ./config;
assistantPath = import (configPath + /assistant);
assistantPath = import (configPath + /assistant) {
inherit
flake
;
};
interfacePath = import (configPath + /interface) {
inherit
@ -30,7 +34,6 @@ let
miscPath = import (configPath + /misc) { inherit lib pkgs; };
in
{
assistant = assistantPath;
git = gitPath;
languages = languagesPath;
lsp = lspPath;
@ -38,5 +41,6 @@ in
experimental.theme_overrides = experimentalPath;
}
// assistantPath
// interfacePath
// miscPath

View file

@ -20,8 +20,8 @@ let
pkgs
;
};
packagePath = flake.inputs.zed-editor.packages.${pkgs.system}.default;
in
# packagePath = flake.inputs.zed-editor.packages.${pkgs.system}.default;
{
programs.zed-editor = {
enable = true;