use llm-agents.nix
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.coding.agents;
|
||||
in
|
||||
{
|
||||
options.my.coding.agents = {
|
||||
enable = lib.mkEnableOption "LLM coding agents";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.hm = {
|
||||
home.packages = with pkgs.llm-agents; [
|
||||
claude-code
|
||||
opencode
|
||||
];
|
||||
};
|
||||
my.persist = {
|
||||
homeDirs = [
|
||||
".claude"
|
||||
|
||||
".config/opencode"
|
||||
".local/share/opencode"
|
||||
];
|
||||
homeFiles = [
|
||||
".claude.json"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -11,6 +11,7 @@ in
|
||||
my.coding = {
|
||||
editor.all.enable = true;
|
||||
langs.all.enable = true;
|
||||
agents.enable = true;
|
||||
misc.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user