mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 14:50:12 -04:00
updated
This commit is contained in:
parent
9f4e6c6a65
commit
1012029022
7 changed files with 18 additions and 7 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -118,11 +118,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776169885,
|
"lastModified": 1776548001,
|
||||||
"narHash": "sha256-l/iNYDZ4bGOAFQY2q8y5OAfBBtrDAaPuRQqWaFHVRXM=",
|
"narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4bd9165a9165d7b5e33ae57f3eecbcb28fb231c9",
|
"rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6667f36a9f83a88b33b691a5a9b701365267bbb3
|
Subproject commit f0fe41e942dfedab23828131372a5545a6d5c4c6
|
||||||
|
|
@ -11,6 +11,7 @@ in
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
gimp
|
gimp
|
||||||
libreoffice
|
libreoffice
|
||||||
|
signal-desktop
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit da6106c77470b336783951ff2bce795688e9663d
|
Subproject commit 79643b1a17336b43f09090aa51ffc18763e11552
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 4f129c83b945e8847df798f83a29e554570c6142
|
Subproject commit b0524fdd3056c7dd951b41f7da410dde37f91a67
|
||||||
|
|
@ -4,6 +4,8 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.user.pi;
|
cfg = config.modules.user.pi;
|
||||||
npmGlobal = "${config.home.homeDirectory}/.npm-global";
|
npmGlobal = "${config.home.homeDirectory}/.npm-global";
|
||||||
|
piVersion = "0.70.5";
|
||||||
|
|
||||||
in
|
in
|
||||||
{ options.modules.user.pi = { enable = mkEnableOption "user.pi"; };
|
{ options.modules.user.pi = { enable = mkEnableOption "user.pi"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
@ -24,5 +26,13 @@ in
|
||||||
programs.bash.initExtra = ''
|
programs.bash.initExtra = ''
|
||||||
export LLAMACPP_API_KEY=$(cat /run/secrets/LLAMA_API_KEY)
|
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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8c8a4e4a7afd175be2eb97055bb01f43ee8b992d
|
Subproject commit d5bdb39d7e65e679b3052e5ec437f75e4ec8e594
|
||||||
Loading…
Add table
Add a link
Reference in a new issue