From 3d29258be7e3d7d480170446b43fe945b2cee386 Mon Sep 17 00:00:00 2001 From: emmatherock Date: Sun, 21 Jun 2026 22:58:44 -0300 Subject: [PATCH] feat: add llm-agents and nix-vscode-extensions support, update home configuration --- flake.lock | 198 +++++++++++++++++++++++++++++++++++- flake.nix | 19 +++- home/emmatherock/agents.nix | 12 +++ home/emmatherock/home.nix | 1 + home/emmatherock/vscode.nix | 34 ++++--- 5 files changed, 246 insertions(+), 18 deletions(-) create mode 100644 home/emmatherock/agents.nix diff --git a/flake.lock b/flake.lock index 5d9a036..6ec8cf9 100644 --- a/flake.lock +++ b/flake.lock @@ -53,6 +53,64 @@ "type": "github" } }, + "blueprint_2": { + "inputs": { + "nixpkgs": [ + "llm-agents", + "nixpkgs" + ], + "systems": [ + "llm-agents", + "systems" + ] + }, + "locked": { + "lastModified": 1776249299, + "narHash": "sha256-Dt9t1TGRmJFc0xVYhttNBD6QsAgHOHCArqGa0AyjrJY=", + "owner": "numtide", + "repo": "blueprint", + "rev": "56131e8628f173d24a27f6d27c0215eff57e40dd", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "blueprint", + "type": "github" + } + }, + "bun2nix": { + "inputs": { + "flake-parts": [ + "llm-agents", + "flake-parts" + ], + "nixpkgs": [ + "llm-agents", + "nixpkgs" + ], + "systems": [ + "llm-agents", + "systems" + ], + "treefmt-nix": [ + "llm-agents", + "treefmt-nix" + ] + }, + "locked": { + "lastModified": 1778446047, + "narHash": "sha256-oQvcadh2BCkrog+SGrG6YffKJrveYpjj3TdQJWaKhaM=", + "owner": "nix-community", + "repo": "bun2nix", + "rev": "f2bc12af1a6369648aac41041ceeaa0b866599c6", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "bun2nix", + "type": "github" + } + }, "chaotic": { "inputs": { "flake-schemas": "flake-schemas", @@ -96,6 +154,27 @@ "type": "github" } }, + "flake-parts": { + "inputs": { + "nixpkgs-lib": [ + "llm-agents", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1778716662, + "narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, "flake-schemas": { "locked": { "lastModified": 1780327564, @@ -112,7 +191,7 @@ }, "flake-utils": { "inputs": { - "systems": "systems" + "systems": "systems_2" }, "locked": { "lastModified": 1681202837, @@ -169,6 +248,47 @@ "type": "github" } }, + "llm-agents": { + "inputs": { + "blueprint": "blueprint_2", + "bun2nix": "bun2nix", + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs_3", + "systems": "systems", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1782078509, + "narHash": "sha256-7+uI3P7u+tgl0ZfCusw3g9yoG74yogO/l/QLwNmNDEU=", + "owner": "numtide", + "repo": "llm-agents.nix", + "rev": "129d65240d8c27ab2875f415e0c0b1da8ca28552", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "llm-agents.nix", + "type": "github" + } + }, + "nix-vscode-extensions": { + "inputs": { + "nixpkgs": "nixpkgs_4" + }, + "locked": { + "lastModified": 1782017505, + "narHash": "sha256-6A1wbeFbopCVchDX5rjAxEyNCGgQcKye4ylhjfZdCdY=", + "owner": "nix-community", + "repo": "nix-vscode-extensions", + "rev": "714f957519be5fc35127e3eee99ffbb17ef6d98c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-vscode-extensions", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1771848320, @@ -202,6 +322,38 @@ } }, "nixpkgs_3": { + "locked": { + "lastModified": 1781607440, + "narHash": "sha256-rxO+uc/KFbSJp+pgyXRuAX6QlG9hJdnt0BXpEQRXY+U=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "3e41b24abd260e8f71dbe2f5737d24122f972158", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { + "locked": { + "lastModified": 1777207419, + "narHash": "sha256-V3bmPWAajDiC+1ClDOp55gianW2EyRJSJOyu1RUQibc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a7ecea3deccfbdbf22945a89984fcc5a169da8aa", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "rev": "a7ecea3deccfbdbf22945a89984fcc5a169da8aa", + "type": "github" + } + }, + "nixpkgs_5": { "locked": { "lastModified": 1781577229, "narHash": "sha256-lrp67w8AulE9Ks53n27I45ADSzbOCn4H+CNW1Ck8B+8=", @@ -217,7 +369,7 @@ "type": "github" } }, - "nixpkgs_4": { + "nixpkgs_6": { "locked": { "lastModified": 1682134069, "narHash": "sha256-TnI/ZXSmRxQDt2sjRYK/8j8iha4B4zP2cnQCZZ3vp7k=", @@ -248,7 +400,9 @@ "apple-fonts": "apple-fonts", "chaotic": "chaotic", "home-manager": "home-manager_2", - "nixpkgs": "nixpkgs_3", + "llm-agents": "llm-agents", + "nix-vscode-extensions": "nix-vscode-extensions", + "nixpkgs": "nixpkgs_5", "sidra": "sidra", "vscode-server": "vscode-server" } @@ -372,10 +526,46 @@ "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": 1780220602, + "narHash": "sha256-eynAfOmbmxJnkp7YewvCEbShNnnYJ9gLLqkzsYtBPeM=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "db947814a175b7ca6ded66e21383d938df01c227", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, "vscode-server": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_4" + "nixpkgs": "nixpkgs_6" }, "locked": { "lastModified": 1770124655, diff --git a/flake.nix b/flake.nix index 0932be8..6a0bee9 100644 --- a/flake.nix +++ b/flake.nix @@ -14,9 +14,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; vscode-server.url = "github:nix-community/nixos-vscode-server"; + llm-agents.url = "github:numtide/llm-agents.nix"; + nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions"; }; - outputs = { self, nixpkgs, chaotic, apple-fonts, home-manager, sidra, vscode-server, ... }@inputs: { + outputs = { self, nixpkgs, chaotic, apple-fonts, home-manager, sidra, vscode-server, nix-vscode-extensions, ... }@inputs: { nixosConfigurations = { miku-homelab = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; @@ -28,6 +30,9 @@ vscode-server.nixosModules.default chaotic.nixosModules.default { + nixpkgs.overlays = [ + inputs.nix-vscode-extensions.overlays.default + ]; home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.extraSpecialArgs = { inherit inputs; }; @@ -37,4 +42,16 @@ }; }; }; + nixConfig = { + extra-substituters = [ + "https://cache.nixos.org" + "https://cache.numtide.com" + "https://nix-community.cachix.org" + ]; + + extra-trusted-public-keys = [ + "niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g=" + "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" + ]; + }; } diff --git a/home/emmatherock/agents.nix b/home/emmatherock/agents.nix new file mode 100644 index 0000000..dd7139d --- /dev/null +++ b/home/emmatherock/agents.nix @@ -0,0 +1,12 @@ +{ pkgs, inputs, ... }: + +let + agents = inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}; +in +{ + home.packages = with agents; [ + antigravity-cli + codex + claude-code + ]; +} \ No newline at end of file diff --git a/home/emmatherock/home.nix b/home/emmatherock/home.nix index 1a7b289..6213fcc 100644 --- a/home/emmatherock/home.nix +++ b/home/emmatherock/home.nix @@ -1,5 +1,6 @@ { imports = [ + ./agents.nix ./audio.nix ./desktop-apps.nix ./deskflow.nix diff --git a/home/emmatherock/vscode.nix b/home/emmatherock/vscode.nix index 29f98f1..c05a719 100644 --- a/home/emmatherock/vscode.nix +++ b/home/emmatherock/vscode.nix @@ -1,18 +1,26 @@ { pkgs, ... }: + +let + marketplace = pkgs.nix-vscode-extensions.vscode-marketplace; +in { - home.packages = with pkgs; [ - (vscode-with-extensions.override { - vscodeExtensions = with vscode-extensions; [ - jnoortheen.nix-ide - ms-python.python - vscode-extensions.ms-dotnettools.csharp - vscode-extensions.ms-vscode.cpptools - vscode-extensions.golang.go - vscode-extensions.rust-lang.rust-analyzer - vscode-extensions.Google.gemini-cli-vscode-ide-companion - vscode-extensions.ms-azuretools.vscode-containers - ms-vscode-remote.remote-ssh - vscode-extensions.coolbear.systemd-unit-file + home.packages = [ + (pkgs.vscode-with-extensions.override { + vscodeExtensions = [ + marketplace.openai.chatgpt + + marketplace.ms-python.python + marketplace.ms-python.vscode-pylance + marketplace.ms-python.debugpy + + marketplace.jnoortheen.nix-ide + marketplace.redhat.vscode-yaml + marketplace.ms-dotnettools.csharp + marketplace.ms-vscode.cpptools + marketplace.golang.go + marketplace.rust-lang.rust-analyzer + marketplace.ms-azuretools.vscode-containers + marketplace.ms-vscode-remote.remote-ssh ]; }) ];