From ab62d8924899bdc34b9bed6cdbafbb7c33d7efbe Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Wed, 8 Apr 2026 12:31:28 +0200 Subject: [PATCH 1/2] Install a couple of LLM tools --- README.md | 2 + flake.lock | 187 ++++++++++++++++++++++++++++++++++++++++++++++++++--- flake.nix | 3 + 3 files changed, 184 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fb4f95d..e847e37 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ Applications: * Repo cleaner `bfg` * `cachix` * `chamber` +* `Claude Code (`claude`) +* `coderabbit` CLI * `colima` (macOS) * `detect-secrets` * `docker` (macOS) diff --git a/flake.lock b/flake.lock index 68f0fb6..c4e43a6 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,64 @@ { "nodes": { + "blueprint": { + "inputs": { + "nixpkgs": [ + "llm-agents", + "nixpkgs" + ], + "systems": [ + "llm-agents", + "systems" + ] + }, + "locked": { + "lastModified": 1771437256, + "narHash": "sha256-bLqwib+rtyBRRVBWhMuBXPCL/OThfokA+j6+uH7jDGU=", + "owner": "numtide", + "repo": "blueprint", + "rev": "06ee7190dc2620ea98af9eb225aa9627b68b0e33", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "blueprint", + "type": "github" + } + }, + "bun2nix": { + "inputs": { + "flake-parts": [ + "llm-agents", + "flake-parts" + ], + "import-tree": "import-tree", + "nixpkgs": [ + "llm-agents", + "nixpkgs" + ], + "systems": [ + "llm-agents", + "systems" + ], + "treefmt-nix": [ + "llm-agents", + "treefmt-nix" + ] + }, + "locked": { + "lastModified": 1770895533, + "narHash": "sha256-v3QaK9ugy9bN9RXDnjw0i2OifKmz2NnKM82agtqm/UY=", + "owner": "nix-community", + "repo": "bun2nix", + "rev": "c843f477b15f51151f8c6bcc886954699440a6e1", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "bun2nix", + "type": "github" + } + }, "flake-parts": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" @@ -18,17 +77,76 @@ "type": "github" } }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": [ + "llm-agents", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1775087534, + "narHash": "sha256-91qqW8lhL7TLwgQWijoGBbiD4t7/q75KTi8NxjVmSmA=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "3107b77cd68437b9a76194f0f7f9c55f2329ca5b", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "import-tree": { + "locked": { + "lastModified": 1763762820, + "narHash": "sha256-ZvYKbFib3AEwiNMLsejb/CWs/OL/srFQ8AogkebEPF0=", + "owner": "vic", + "repo": "import-tree", + "rev": "3c23749d8013ec6daa1d7255057590e9ca726646", + "type": "github" + }, + "original": { + "owner": "vic", + "repo": "import-tree", + "type": "github" + } + }, + "llm-agents": { + "inputs": { + "blueprint": "blueprint", + "bun2nix": "bun2nix", + "flake-parts": "flake-parts_2", + "nixpkgs": "nixpkgs", + "systems": "systems", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1775619181, + "narHash": "sha256-McIhvwQTDZKRmCGJoHlAOAkPR2SrExTA+BMjYrSIr7Q=", + "owner": "numtide", + "repo": "llm-agents.nix", + "rev": "a6a61ddf000bb1ef8a5ee96e403fa3859ba4f9ab", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "llm-agents.nix", + "type": "github" + } + }, "nixpkgs": { "locked": { - "lastModified": 1774273680, - "narHash": "sha256-a++tZ1RQsDb1I0NHrFwdGuRlR5TORvCEUksM459wKUA=", - "owner": "nixos", + "lastModified": 1775579569, + "narHash": "sha256-/m3yyS/EnXqoPGBJYVy4jTOsirdgsEZ3JdN2gGkBr14=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "fdc7b8f7b30fdbedec91b71ed82f36e1637483ed", + "rev": "dfd9566f82a6e1d55c30f861879186440614696e", "type": "github" }, "original": { - "owner": "nixos", + "owner": "NixOS", "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" @@ -115,10 +233,10 @@ }, "nixpkgs-terraform": { "inputs": { - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs_3", "nixpkgs-23_05": "nixpkgs-23_05", "nixpkgs-24_05": "nixpkgs-24_05", - "systems": "systems" + "systems": "systems_2" }, "locked": { "lastModified": 1772561659, @@ -135,6 +253,22 @@ } }, "nixpkgs_2": { + "locked": { + "lastModified": 1774273680, + "narHash": "sha256-a++tZ1RQsDb1I0NHrFwdGuRlR5TORvCEUksM459wKUA=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "fdc7b8f7b30fdbedec91b71ed82f36e1637483ed", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1763934636, "narHash": "sha256-9glbI7f1uU+yzQCq5LwLgdZqx6svOhZWkd4JRY265fc=", @@ -153,7 +287,8 @@ "root": { "inputs": { "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs", + "llm-agents": "llm-agents", + "nixpkgs": "nixpkgs_2", "nixpkgs-golang": "nixpkgs-golang", "nixpkgs-stable": "nixpkgs-stable", "nixpkgs-terraform": "nixpkgs-terraform" @@ -173,6 +308,42 @@ "repo": "default", "type": "github" } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "llm-agents", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1775125835, + "narHash": "sha256-2qYcPgzFhnQWchHo0SlqLHrXpux5i6ay6UHA+v2iH4U=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "75925962939880974e3ab417879daffcba36c4a3", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 416927e..2d6dcc1 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,7 @@ nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05"; nixpkgs-terraform.url = "github:stackbuilders/nixpkgs-terraform"; flake-parts.url = "github:hercules-ci/flake-parts"; + llm-agents.url = "github:numtide/llm-agents.nix"; }; outputs = inputs @ { flake-parts, ... }: @@ -44,6 +45,7 @@ golang = (import inputs.nixpkgs-golang { inherit system; }).go_1_26; stable = import inputs.nixpkgs-stable { inherit system; }; terraform = inputs.nixpkgs-terraform.packages.${system}."terraform-1.5.7"; + llms = inputs.llm-agents.packages.${system}; # Add Darwin packages here. darwin-pkgs = @@ -131,6 +133,7 @@ wget ; inherit (stable) bitwarden-cli; + inherit (llms) claude-code coderabbit-cli; go = golang; helm = pkgs.kubernetes-helm; jsonnet = pkgs.go-jsonnet; From 227fca3b3551f2ede22ceeb6ed9c40430555f544 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Thu, 9 Apr 2026 08:27:45 +0200 Subject: [PATCH 2/2] add binary cache --- flake.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 2d6dcc1..e15fcbb 100644 --- a/flake.nix +++ b/flake.nix @@ -2,17 +2,19 @@ description = "Stackrox development environment"; nixConfig = { - substituters = [ + extra-substituters = [ "https://stackrox.cachix.org" "https://cache.nixos.org" "https://nix-community.cachix.org" "https://nixpkgs-terraform.cachix.org" + "https://cache.numtide.com" ]; - trusted-public-keys = [ + extra-trusted-public-keys = [ "stackrox.cachix.org-1:Wnn8TKAitOTWKfTvvHiHzJjXy0YfiwoK6rrVzXt/trA=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nixpkgs-terraform.cachix.org-1:8Sit092rIdAVENA3ZVeH9hzSiqI/jng6JiCrQ1Dmusw=" + "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" ]; };