From 23dfd5b9982f23c2c5d18bb1c0595f9b83afe9bf Mon Sep 17 00:00:00 2001 From: tux Date: Thu, 17 Sep 2026 21:49:43 +0530 Subject: [PATCH] feat(flake): add llm-agents input and packages --- flake.lock | 292 ++++++++++++++++++++-------- flake.nix | 1 + modules/flake/overlays.nix | 1 + modules/hosts/canopus/config.nix | 2 + modules/hosts/sirius/config.nix | 2 + modules/nixos/core/substituters.nix | 4 + 6 files changed, 221 insertions(+), 81 deletions(-) diff --git a/flake.lock b/flake.lock index e45afec..d886f8a 100644 --- a/flake.lock +++ b/flake.lock @@ -53,6 +53,40 @@ "url": "https://codeberg.org/LGFae/awww" } }, + "bun2nix": { + "inputs": { + "flake-parts": [ + "llm-agents", + "flake-parts" + ], + "nixpkgs": [ + "llm-agents", + "nixpkgs" + ], + "systems": [ + "llm-agents", + "systems" + ], + "treefmt-nix": [ + "llm-agents", + "treefmt-nix" + ] + }, + "locked": { + "lastModified": 1788011267, + "narHash": "sha256-mEq2kU+ljompTToZ44Afvm7d/rHJ5iMBl0tjZuyShJs=", + "owner": "Mic92", + "repo": "bun2nix", + "rev": "5765b0614591f75ee8ba5596e81ae85c167d1071", + "type": "github" + }, + "original": { + "owner": "Mic92", + "ref": "fix-structured-attrs-hook", + "repo": "bun2nix", + "type": "github" + } + }, "cardwire": { "inputs": { "fenix": "fenix", @@ -327,6 +361,27 @@ } }, "flake-parts_3": { + "inputs": { + "nixpkgs-lib": [ + "llm-agents", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1788450739, + "narHash": "sha256-glZLQlzIn1fXH6PazR2iUmTo7kzzyYSshrWhLS9TqCU=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "31729ca8cbdb4fa927b34e5f4353e6a83f39e993", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_4": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" }, @@ -344,7 +399,7 @@ "type": "github" } }, - "flake-parts_4": { + "flake-parts_5": { "inputs": { "nixpkgs-lib": [ "nur", @@ -365,7 +420,7 @@ "type": "github" } }, - "flake-parts_5": { + "flake-parts_6": { "inputs": { "nixpkgs-lib": "nixpkgs-lib_2" }, @@ -383,7 +438,7 @@ "type": "github" } }, - "flake-parts_6": { + "flake-parts_7": { "inputs": { "nixpkgs-lib": "nixpkgs-lib_3" }, @@ -440,7 +495,7 @@ }, "flake-utils_3": { "inputs": { - "systems": "systems_5" + "systems": "systems_6" }, "locked": { "lastModified": 1731533236, @@ -458,7 +513,7 @@ }, "flake-utils_4": { "inputs": { - "systems": "systems_6" + "systems": "systems_7" }, "locked": { "lastModified": 1731533236, @@ -1068,9 +1123,31 @@ "type": "github" } }, + "llm-agents": { + "inputs": { + "bun2nix": "bun2nix", + "flake-parts": "flake-parts_3", + "nixpkgs": "nixpkgs_11", + "systems": "systems_3", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1789643193, + "narHash": "sha256-Vd9M6YDpwLDTI2JgQxNdnx8xvWJ8mVI5tehu/yFvoMA=", + "owner": "numtide", + "repo": "llm-agents.nix", + "rev": "e07b7ec56fcbb9d93383319aae2d3aedcd4631d1", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "llm-agents.nix", + "type": "github" + } + }, "mango": { "inputs": { - "flake-parts": "flake-parts_3", + "flake-parts": "flake-parts_4", "nixpkgs": [ "nixpkgs" ], @@ -1190,9 +1267,9 @@ "inputs": { "home-manager": "home-manager_4", "nix-darwin": "nix-darwin", - "nixpkgs": "nixpkgs_11", + "nixpkgs": "nixpkgs_12", "nixpkgs-nixcord": "nixpkgs-nixcord", - "treefmt-nix": "treefmt-nix" + "treefmt-nix": "treefmt-nix_2" }, "locked": { "lastModified": 1789029226, @@ -1210,7 +1287,7 @@ }, "nixos-hardware": { "inputs": { - "nixpkgs": "nixpkgs_12" + "nixpkgs": "nixpkgs_13" }, "locked": { "lastModified": 1788942796, @@ -1369,6 +1446,22 @@ } }, "nixpkgs_11": { + "locked": { + "lastModified": 1789370336, + "narHash": "sha256-6RSEDHIWQtesQKWSu5qRai8L2h4KgCgMEfJHstW99G4=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "c7def046b9a883d46974757852106483d741586f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_12": { "locked": { "lastModified": 1788921488, "narHash": "sha256-8+xWRxEkD6l217cIUdRxfeUGS9lQX0hVtUuNVsBaDzk=", @@ -1384,7 +1477,7 @@ "type": "github" } }, - "nixpkgs_12": { + "nixpkgs_13": { "locked": { "lastModified": 1767892417, "narHash": "sha256-8bW3q88CEg2u4hSP66Vf4lpbLonHz7hqDNBMcCY7E9U=", @@ -1397,39 +1490,39 @@ "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" } }, - "nixpkgs_13": { - "locked": { - "lastModified": 1789006805, - "narHash": "sha256-xB8mKMOx1IA9vTDNLmJZ6n4wCMq/cuWBBOzGCRnqxrU=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs_14": { "locked": { "lastModified": 1789006805, "narHash": "sha256-xB8mKMOx1IA9vTDNLmJZ6n4wCMq/cuWBBOzGCRnqxrU=", - "owner": "nixos", + "owner": "NixOS", "repo": "nixpkgs", "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", "type": "github" }, "original": { - "owner": "nixos", + "owner": "NixOS", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, "nixpkgs_15": { + "locked": { + "lastModified": 1789006805, + "narHash": "sha256-xB8mKMOx1IA9vTDNLmJZ6n4wCMq/cuWBBOzGCRnqxrU=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "8ce4ef6cb6f871616146b9fe26d2a5ae594e94fe", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_16": { "locked": { "lastModified": 1776683584, "narHash": "sha256-NuTLMrr10Tng72hurYG8jYQ4XKK8wnpJmOGcPiis96g=", @@ -1445,7 +1538,7 @@ "type": "github" } }, - "nixpkgs_16": { + "nixpkgs_17": { "locked": { "lastModified": 1788752844, "narHash": "sha256-VaWGJ6+cIYN2erfSecbRV+4ljI185Ty2wUrXyvQbgOw=", @@ -1461,7 +1554,7 @@ "type": "github" } }, - "nixpkgs_17": { + "nixpkgs_18": { "locked": { "lastModified": 1782175435, "narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=", @@ -1477,7 +1570,7 @@ "type": "github" } }, - "nixpkgs_18": { + "nixpkgs_19": { "locked": { "lastModified": 1770107345, "narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=", @@ -1493,22 +1586,6 @@ "type": "github" } }, - "nixpkgs_19": { - "locked": { - "lastModified": 1774386573, - "narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "nixpkgs_2": { "locked": { "lastModified": 1788179007, @@ -1525,6 +1602,22 @@ "type": "github" } }, + "nixpkgs_20": { + "locked": { + "lastModified": 1774386573, + "narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs_3": { "locked": { "lastModified": 1787631388, @@ -1697,8 +1790,8 @@ }, "nur": { "inputs": { - "flake-parts": "flake-parts_4", - "nixpkgs": "nixpkgs_14" + "flake-parts": "flake-parts_5", + "nixpkgs": "nixpkgs_15" }, "locked": { "lastModified": 1789084691, @@ -1716,7 +1809,7 @@ }, "opencode": { "inputs": { - "nixpkgs": "nixpkgs_15" + "nixpkgs": "nixpkgs_16" }, "locked": { "lastModified": 1789072415, @@ -1864,12 +1957,13 @@ "import-tree": "import-tree", "lan-mouse": "lan-mouse", "lanzaboote": "lanzaboote", + "llm-agents": "llm-agents", "mango": "mango", "nix-index-database": "nix-index-database", "nix-on-droid": "nix-on-droid", "nixcord": "nixcord", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_13", + "nixpkgs": "nixpkgs_14", "nixpkgs-stable": "nixpkgs-stable", "nur": "nur", "opencode": "opencode", @@ -1877,7 +1971,7 @@ "sops-nix": "sops-nix", "tfolio": "tfolio", "tnvim": "tnvim", - "treefmt-nix": "treefmt-nix_3", + "treefmt-nix": "treefmt-nix_4", "trok": "trok", "tshell": "tshell", "vicinae-extensions": "vicinae-extensions", @@ -1993,7 +2087,7 @@ "mango", "nixpkgs" ], - "systems": "systems_3" + "systems": "systems_4" }, "locked": { "lastModified": 1782624992, @@ -2027,7 +2121,7 @@ }, "serpantinum": { "inputs": { - "nixpkgs": "nixpkgs_16", + "nixpkgs": "nixpkgs_17", "serpantinum-wallpapers": "serpantinum-wallpapers" }, "locked": { @@ -2062,7 +2156,7 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_17" + "nixpkgs": "nixpkgs_18" }, "locked": { "lastModified": 1788914643, @@ -2109,21 +2203,6 @@ } }, "systems_3": { - "locked": { - "lastModified": 1689347949, - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", - "owner": "nix-systems", - "repo": "default-linux", - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default-linux", - "type": "github" - } - }, - "systems_4": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", @@ -2138,6 +2217,21 @@ "type": "github" } }, + "systems_4": { + "locked": { + "lastModified": 1689347949, + "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "owner": "nix-systems", + "repo": "default-linux", + "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default-linux", + "type": "github" + } + }, "systems_5": { "locked": { "lastModified": 1681028828, @@ -2168,13 +2262,28 @@ "type": "github" } }, + "systems_7": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "tfolio": { "inputs": { - "flake-parts": "flake-parts_5", + "flake-parts": "flake-parts_6", "nixpkgs": [ "nixpkgs" ], - "treefmt-nix": "treefmt-nix_2" + "treefmt-nix": "treefmt-nix_3" }, "locked": { "lastModified": 1788861166, @@ -2213,7 +2322,7 @@ "treefmt-nix": { "inputs": { "nixpkgs": [ - "nixcord", + "llm-agents", "nixpkgs" ] }, @@ -2234,7 +2343,7 @@ "treefmt-nix_2": { "inputs": { "nixpkgs": [ - "tfolio", + "nixcord", "nixpkgs" ] }, @@ -2254,7 +2363,10 @@ }, "treefmt-nix_3": { "inputs": { - "nixpkgs": "nixpkgs_18" + "nixpkgs": [ + "tfolio", + "nixpkgs" + ] }, "locked": { "lastModified": 1786901030, @@ -2271,6 +2383,24 @@ } }, "treefmt-nix_4": { + "inputs": { + "nixpkgs": "nixpkgs_19" + }, + "locked": { + "lastModified": 1786901030, + "narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "treefmt-nix_5": { "inputs": { "nixpkgs": [ "trok", @@ -2291,7 +2421,7 @@ "type": "github" } }, - "treefmt-nix_5": { + "treefmt-nix_6": { "inputs": { "nixpkgs": [ "tshell", @@ -2314,11 +2444,11 @@ }, "trok": { "inputs": { - "flake-parts": "flake-parts_6", + "flake-parts": "flake-parts_7", "nixpkgs": [ "nixpkgs" ], - "treefmt-nix": "treefmt-nix_4" + "treefmt-nix": "treefmt-nix_5" }, "locked": { "lastModified": 1788821928, @@ -2340,7 +2470,7 @@ "nixpkgs" ], "quickshell": "quickshell", - "treefmt-nix": "treefmt-nix_5" + "treefmt-nix": "treefmt-nix_6" }, "locked": { "lastModified": 1789072839, @@ -2430,7 +2560,7 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems_4", + "systems": "systems_5", "vicinae": "vicinae" }, "locked": { @@ -2450,7 +2580,7 @@ "voxtype": { "inputs": { "flake-utils": "flake-utils_3", - "nixpkgs": "nixpkgs_19" + "nixpkgs": "nixpkgs_20" }, "locked": { "lastModified": 1780004034, diff --git a/flake.nix b/flake.nix index c4fc379..a1c3f6f 100644 --- a/flake.nix +++ b/flake.nix @@ -94,5 +94,6 @@ voxtype.url = "github:peteonrails/voxtype/v0.7.5"; opencode.url = "github:anomalyco/opencode"; serpantinum.url = "github:ilyamiro/serpantinum"; + llm-agents.url = "github:numtide/llm-agents.nix"; }; } diff --git a/modules/flake/overlays.nix b/modules/flake/overlays.nix index f41114f..09bc780 100644 --- a/modules/flake/overlays.nix +++ b/modules/flake/overlays.nix @@ -26,6 +26,7 @@ nur = inputs.nur.overlays.default; copyparty = inputs.copyparty.overlays.default; + llm-agents = inputs.llm-agents.overlays.shared-nixpkgs; }; perSystem = {system, ...}: let diff --git a/modules/hosts/canopus/config.nix b/modules/hosts/canopus/config.nix index 20a6007..fe90326 100644 --- a/modules/hosts/canopus/config.nix +++ b/modules/hosts/canopus/config.nix @@ -139,6 +139,8 @@ telegram-desktop galaxy-buds-client impala + llm-agents.claude-code + llm-agents.orca ]; # !!! DO NOT CHANGE THIS !!! diff --git a/modules/hosts/sirius/config.nix b/modules/hosts/sirius/config.nix index b7e0106..4d79d4b 100644 --- a/modules/hosts/sirius/config.nix +++ b/modules/hosts/sirius/config.nix @@ -139,6 +139,8 @@ davinci-resolve telegram-desktop impala + llm-agents.claude-code + llm-agents.orca ]; # !!! DO NOT CHANGE THIS !!! diff --git a/modules/nixos/core/substituters.nix b/modules/nixos/core/substituters.nix index 360a53b..ea1400a 100644 --- a/modules/nixos/core/substituters.nix +++ b/modules/nixos/core/substituters.nix @@ -33,6 +33,10 @@ "wezterm.cachix.org-1:kAbhjYUC9qvblTE+s7S+kl5XM1zVa4skO+E/1IDWdH0=" "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ]; + extra-substituters = ["https://cache.numtide.com"]; + extra-trusted-public-keys = [ + "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" + ]; }; }; }