From 1012029022b3fe11f47dcde11be0bf77e20caa0b Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Thu, 30 Apr 2026 21:43:28 -0400 Subject: [PATCH] updated --- flake.lock | 6 +++--- user/modules/bash/bash | 2 +- user/modules/gui/utils/default.nix | 1 + user/modules/neovim/nvim | 2 +- user/modules/pi/agent | 2 +- user/modules/pi/default.nix | 10 ++++++++++ user/modules/vim/vim | 2 +- 7 files changed, 18 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index aa265c3..2eb1556 100644 --- a/flake.lock +++ b/flake.lock @@ -118,11 +118,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1776169885, - "narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=", + "lastModified": 1776548001, + "narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9", + "rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc", "type": "github" }, "original": { diff --git a/user/modules/bash/bash b/user/modules/bash/bash index 6667f36..f0fe41e 160000 --- a/user/modules/bash/bash +++ b/user/modules/bash/bash @@ -1 +1 @@ -Subproject commit 6667f36a9f83a88b33b691a5a9b701365267bbb3 +Subproject commit f0fe41e942dfedab23828131372a5545a6d5c4c6 diff --git a/user/modules/gui/utils/default.nix b/user/modules/gui/utils/default.nix index f162ad3..626a269 100644 --- a/user/modules/gui/utils/default.nix +++ b/user/modules/gui/utils/default.nix @@ -11,6 +11,7 @@ in home.packages = with pkgs; [ gimp libreoffice + signal-desktop ]; }; } diff --git a/user/modules/neovim/nvim b/user/modules/neovim/nvim index da6106c..79643b1 160000 --- a/user/modules/neovim/nvim +++ b/user/modules/neovim/nvim @@ -1 +1 @@ -Subproject commit da6106c77470b336783951ff2bce795688e9663d +Subproject commit 79643b1a17336b43f09090aa51ffc18763e11552 diff --git a/user/modules/pi/agent b/user/modules/pi/agent index 4f129c8..b0524fd 160000 --- a/user/modules/pi/agent +++ b/user/modules/pi/agent @@ -1 +1 @@ -Subproject commit 4f129c83b945e8847df798f83a29e554570c6142 +Subproject commit b0524fdd3056c7dd951b41f7da410dde37f91a67 diff --git a/user/modules/pi/default.nix b/user/modules/pi/default.nix index 4bde7aa..d9ab77d 100644 --- a/user/modules/pi/default.nix +++ b/user/modules/pi/default.nix @@ -4,6 +4,8 @@ with lib; let cfg = config.modules.user.pi; npmGlobal = "${config.home.homeDirectory}/.npm-global"; + piVersion = "0.70.5"; + in { options.modules.user.pi = { enable = mkEnableOption "user.pi"; }; config = mkIf cfg.enable { @@ -24,5 +26,13 @@ in programs.bash.initExtra = '' export LLAMACPP_API_KEY=$(cat /run/secrets/LLAMA_API_KEY) ''; + + home.activation.installPiCodingAgent = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + PATH="${pkgs.nodejs_20}/bin:$PATH" + run mkdir -p ${npmGlobal} + if ! run ${pkgs.nodejs_20}/bin/npm install -g --prefix ${npmGlobal} @mariozechner/pi-coding-agent@${piVersion}; then + warnEcho "pi-coding-agent install failed (offline or registry error)" + fi + ''; }; } diff --git a/user/modules/vim/vim b/user/modules/vim/vim index 8c8a4e4..d5bdb39 160000 --- a/user/modules/vim/vim +++ b/user/modules/vim/vim @@ -1 +1 @@ -Subproject commit 8c8a4e4a7afd175be2eb97055bb01f43ee8b992d +Subproject commit d5bdb39d7e65e679b3052e5ec437f75e4ec8e594