mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 10:35:13 -05:00
feat: changed some stuff
This commit is contained in:
parent
376c1d7b18
commit
c67e864d40
145 changed files with 143 additions and 70 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue