feat: cleaned up ai tooling
This commit is contained in:
parent
4eb36ddfc7
commit
0ca99c1835
19 changed files with 48 additions and 4668 deletions
|
|
@ -33,7 +33,15 @@
|
|||
openrgb.enable = hardware.openRGB.enable;
|
||||
via.enable = hardware.viaKeyboard.enable;
|
||||
claude-code.enable = true;
|
||||
opencode.enable = true;
|
||||
opencode = {
|
||||
enable = true;
|
||||
settings.provider.defiant = {
|
||||
npm = "@ai-sdk/openai-compatible";
|
||||
name = "Ollama (defiant)";
|
||||
options.baseURL = "http://defiant:11434/v1";
|
||||
models."gpt-oss:120b".name = "GPT-OSS 120B";
|
||||
};
|
||||
};
|
||||
davinci-resolve.enable = hardware.graphicsAcceleration.enable;
|
||||
mfoc.enable = true;
|
||||
})
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
...
|
||||
}: let
|
||||
nix-development-enabled = osConfig.host.nix-development.enable;
|
||||
ai-tooling-enabled = true;
|
||||
in {
|
||||
config = lib.mkIf config.user.isDesktopUser {
|
||||
programs = {
|
||||
|
|
@ -75,47 +74,6 @@
|
|||
# arduino development
|
||||
platformIO.enable = false;
|
||||
|
||||
# claude development
|
||||
claudeDev = lib.mkIf ai-tooling-enabled {
|
||||
enable = false;
|
||||
mcp = {
|
||||
nixos = {
|
||||
enable = true;
|
||||
autoApprove = {
|
||||
nixos_search = true;
|
||||
nixos_info = true;
|
||||
home_manager_search = true;
|
||||
home_manager_info = true;
|
||||
darwin_search = true;
|
||||
darwin_info = true;
|
||||
nixos_flakes_search = true;
|
||||
};
|
||||
};
|
||||
eslint = {
|
||||
enable = true;
|
||||
autoApprove = {
|
||||
lint-files = true;
|
||||
};
|
||||
};
|
||||
vitest = {
|
||||
enable = true;
|
||||
autoApprove = {
|
||||
list_tests = true;
|
||||
run_tests = true;
|
||||
analyze_coverage = true;
|
||||
set_project_root = true;
|
||||
};
|
||||
};
|
||||
sleep = {
|
||||
enable = true;
|
||||
timeout = 18000; # 5 hours to match claude codes timeout
|
||||
autoApprove = {
|
||||
sleep = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# misc extensions
|
||||
evenBetterToml.enable = true;
|
||||
direnv.enable = config.programs.direnv.enable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue