From 7de488b23504f4d44f4d30b6b04f6bbac1ba924b Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 13 Apr 2026 18:24:54 -0400 Subject: [PATCH] unnerf opus --- flake.lock | 16 -------------- flake.nix | 1 - modules/flake-parts/nixos-flake.nix | 1 - modules/home/claude-code/default.nix | 31 ++++++++++++++++------------ 4 files changed, 18 insertions(+), 31 deletions(-) diff --git a/flake.lock b/flake.lock index 5015d64..625b8db 100644 --- a/flake.lock +++ b/flake.lock @@ -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", diff --git a/flake.nix b/flake.nix index de2f1bb..697494e 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/modules/flake-parts/nixos-flake.nix b/modules/flake-parts/nixos-flake.nix index 30aba7c..d5b95ef 100644 --- a/modules/flake-parts/nixos-flake.nix +++ b/modules/flake-parts/nixos-flake.nix @@ -17,7 +17,6 @@ # "nixos-hardware" "nix-index-database" "nixvim" - "nix-agent-wire" ]; }; }; diff --git a/modules/home/claude-code/default.nix b/modules/home/claude-code/default.nix index 0123f36..e43b15d 100644 --- a/modules/home/claude-code/default.nix +++ b/modules/home/claude-code/default.nix @@ -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"; + }; + }; }; }