idk some stuff, mostly 25.11 and opencode stuff
This commit is contained in:
@@ -2,9 +2,14 @@
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
osConfig ? { },
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
# Check if we're running on box (for box-specific config)
|
||||
isBox = (osConfig.networking.hostName or "") == "box";
|
||||
in
|
||||
let
|
||||
# Paths to agenix-decrypted secrets (same on Darwin and NixOS)
|
||||
githubToken = "/run/agenix/github-token";
|
||||
@@ -29,10 +34,6 @@ in
|
||||
autoupdate = false;
|
||||
permission = {
|
||||
external_directory = "allow";
|
||||
# Restrict session-search skill to archivist only
|
||||
skill = {
|
||||
"session-search" = "deny";
|
||||
};
|
||||
};
|
||||
provider = {
|
||||
anthropic = {
|
||||
@@ -60,12 +61,13 @@ in
|
||||
#plugin = ["@plannotator/opencode@latest"];
|
||||
};
|
||||
|
||||
"opencode/themes/ayu-mirage.json".source = ./themes/ayu-mirage.json;
|
||||
"opencode/agent/librarian.md".source = ./agent/librarian.md;
|
||||
"opencode/agent/adversary.md".source = ./agent/adversary.md;
|
||||
"opencode/agent/archivist.md".source = ./agent/archivist.md;
|
||||
"opencode/command/cleanup.md".source = ./command/cleanup.md;
|
||||
"opencode/tool/search-history.ts".source = ./tool/search-history.ts;
|
||||
"opencode/skill/session-search/SKILL.md".source = ./skill/session-search/SKILL.md;
|
||||
"opencode/themes".source = ./themes;
|
||||
"opencode/agents".source = ./agents;
|
||||
"opencode/commands".source = ./commands;
|
||||
"opencode/skills".source = ./skills;
|
||||
};
|
||||
|
||||
home.file = lib.mkIf isBox {
|
||||
"usr/.opencode/agents.md".source = ./agents/box.md;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user