From e3a83dcb97ce37b3df5f36812db154c78c2ff80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=BF=20corey=20=28they/them=29?= Date: Sat, 7 Mar 2026 09:04:17 -0800 Subject: [PATCH 1/2] feat(home): add nix-eval-flake wrapper script Adds a shell wrapper that evaluates nix flake outputs without using the `#` symbol directly, avoiding Claude Code's shell-quote confirmation prompt. Also adds the command to Claude Code's auto-allow permissions. Co-Authored-By: Claude Opus 4.6 --- modules/home/development.nix | 1 + modules/home/utilities.nix | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/home/development.nix b/modules/home/development.nix index 5eff87b1..cc49a7bf 100644 --- a/modules/home/development.nix +++ b/modules/home/development.nix @@ -54,6 +54,7 @@ in { "Bash(wc *)" "Bash(which *)" "Bash(nix *)" + "Bash(nix-eval-flake *)" "Bash(git log *)" "Bash(git diff *)" "Bash(git status)" diff --git a/modules/home/utilities.nix b/modules/home/utilities.nix index 2fce2cdd..bef90429 100644 --- a/modules/home/utilities.nix +++ b/modules/home/utilities.nix @@ -90,8 +90,13 @@ in { }; programs.nix-index-database.comma.enable = true; - home.packages = + home.packages = let + nix-eval-flake = pkgs.writeShellScriptBin "nix-eval-flake" '' + nix eval ".#$1" "''${@:2}" + ''; + in [ + nix-eval-flake pkgs.manix pkgs.nix-du pkgs.nix-tree From c2d18f21d1085ec51fc1a0e02e00661c4cdc15f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=BF=20corey=20=28they/them=29?= Date: Sat, 7 Mar 2026 09:09:01 -0800 Subject: [PATCH 2/2] chore: update llm-profile flake input Co-Authored-By: Claude Opus 4.6 --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index c8750b95..610ce669 100644 --- a/flake.lock +++ b/flake.lock @@ -239,11 +239,11 @@ "llm-profile": { "flake": false, "locked": { - "lastModified": 1772865042, - "narHash": "sha256-T6Y7oJC6Q4haiEz4XIEjwKZ+IU3TsedGS73bSN30iaM=", + "lastModified": 1772903258, + "narHash": "sha256-+IgeG7g0nsTWrgL1p9pJ4IqS6L8MKapAEBBfbfU30XA=", "owner": "stackptr", "repo": "llm-profile", - "rev": "aa298891a19f56a4c40df4785518e90979099c79", + "rev": "c8b097614868ab89bd75dc9b9685db260cb8d8c8", "type": "github" }, "original": {