unnerf opus

This commit is contained in:
Sridhar Ratnakumar 2026-04-13 18:24:54 -04:00
parent 88806e222c
commit 7de488b235
4 changed files with 18 additions and 31 deletions

16
flake.lock generated
View file

@ -763,21 +763,6 @@
"type": "github"
}
},
"nix-agent-wire": {
"locked": {
"lastModified": 1773881002,
"narHash": "sha256-YiOXMLnjkmUcubkxPWx5vRl+OaQwaJvrjiAVw8pp+u8=",
"owner": "srid",
"repo": "nix-agent-wire",
"rev": "dff0e61fa1bc8457815c8cd61808ea07b514502b",
"type": "github"
},
"original": {
"owner": "srid",
"repo": "nix-agent-wire",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
@ -1103,7 +1088,6 @@
"jumphost-nix": "jumphost-nix",
"kolu": "kolu",
"landrun-nix": "landrun-nix",
"nix-agent-wire": "nix-agent-wire",
"nix-darwin": "nix-darwin",
"nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",

View file

@ -31,7 +31,6 @@
vira.url = "github:juspay/vira";
# landrun-nix.url = "github:srid/landrun-nix";
landrun-nix.url = "github:adrian-gierakowski/landrun-nix/darwin-implementation-via-sandbox-exec";
nix-agent-wire.url = "github:srid/nix-agent-wire";
jumphost-nix.url = "github:srid/jumphost-nix";
jumphost-nix.flake = false;

View file

@ -17,7 +17,6 @@
# "nixos-hardware"
"nix-index-database"
"nixvim"
"nix-agent-wire"
];
};
};

View file

@ -1,20 +1,25 @@
{ flake, pkgs, ... }:
{ pkgs, ... }:
{
imports = [
flake.inputs.nix-agent-wire.homeModules.claude-code
];
home.packages = with pkgs; [
tree
];
programs.claude-code = {
enable = true;
# Installed outside Nix (e.g., via npm) to get auto-updates.
# This requires disabling autoWire too, since wiring MCP servers
# needs a package to wrap.
package = null;
autoWire.enable = false;
home.file.".claude/settings.json" = {
force = true;
text = builtins.toJSON {
skipDangerousModePermissionPrompt = true;
attribution = {
commit = "";
};
# Un-nerf Claude Opus in Claude Code
# See: https://x.com/kunchenguid/status/2043720881990725868
effortLevel = "high";
env = {
CLAUDE_CODE_DISABLE_1M_CONTEXT = "1";
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING = "1";
CLAUDE_CODE_DISABLE_AUTO_MEMORY = "1";
CLAUDE_SUBAGENT_MODEL = "sonnet";
};
};
};
}