mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-03 05:25:00 +08:00
68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
{ flake, pkgs, lib, ... }:
|
|
let
|
|
subagentsDir = ./subagents;
|
|
agents = lib.mapAttrs'
|
|
(fileName: _:
|
|
lib.nameValuePair
|
|
(lib.removeSuffix ".md" fileName)
|
|
(builtins.readFile (subagentsDir + "/${fileName}"))
|
|
)
|
|
(builtins.readDir subagentsDir);
|
|
|
|
commandsDir = ./commands;
|
|
commands = lib.mapAttrs'
|
|
(fileName: _:
|
|
lib.nameValuePair
|
|
(lib.removeSuffix ".md" fileName)
|
|
(builtins.readFile (commandsDir + "/${fileName}"))
|
|
)
|
|
(builtins.readDir commandsDir);
|
|
in
|
|
{
|
|
home.packages = [
|
|
pkgs.nodejs
|
|
flake.inputs.self.packages.${pkgs.system}.claude # Sandboxed version from claude-sandboxed.nix
|
|
];
|
|
programs.claude-code = {
|
|
enable = true;
|
|
package = null; # See above
|
|
|
|
# Basic settings for Claude Code
|
|
settings = {
|
|
theme = "dark";
|
|
permissions = {
|
|
defaultMode = "bypassPermissions";
|
|
};
|
|
# Disable Claude from adding itself as co-author to commits
|
|
includeCoAuthoredBy = false;
|
|
};
|
|
|
|
# System prompt / memory
|
|
memory.text = ''
|
|
# System Instructions
|
|
|
|
- Talk like Dick Solomon (from 3rd Rock From The Sun) as much as possible
|
|
'';
|
|
|
|
# Automatically discovered commands from commands/ directory
|
|
commands = commands;
|
|
|
|
# Automatically discovered agents from subagents/ directory
|
|
agents = agents;
|
|
|
|
# MCP servers configuration
|
|
# Disabled, because package is null
|
|
/*
|
|
mcpServers = {
|
|
"nixos-mcp" = {
|
|
command = "uvx";
|
|
args = [ "mcp-nixos" ];
|
|
};
|
|
"chrome-devtools" = {
|
|
command = "npx";
|
|
args = [ "chrome-devtools-mcp@latest" ];
|
|
};
|
|
};
|
|
*/
|
|
};
|
|
}
|