greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

feat(home/feats/cli): switch from opencode to pi

commitb814a8cd582a226b12597131c86751fb9cb0565f
parent2e2dae83959cdff07c9b150c4c33344050b8bc04
authorlostduk <[email protected]>
date2026-03-03 08:56 +0000
flake.lock81++++++++++++++++++++++++++++++++++++++++
flake.nix5+++
home/features/cli/opencode.nix23------------
home/features/cli/pi.nix9+++++
home/profiles/sunflower.nix2+

5 files changed, -24/+96

flake.lock

@@ -1,5 +1,27 @@ {   "nodes": {+    "blueprint": {+      "inputs": {+        "nixpkgs": [+          "llm-agents",+          "nixpkgs"+        ],+        "systems": "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"+      }+    },     "disko": {       "inputs": {         "nixpkgs": [@@ -80,6 +102,28 @@         "type": "github"       }     },+    "llm-agents": {+      "inputs": {+        "blueprint": "blueprint",+        "nixpkgs": [+          "nixpkgs"+        ],+        "treefmt-nix": "treefmt-nix"+      },+      "locked": {+        "lastModified": 1772509932,+        "narHash": "sha256-g7j7SERi1w8En6XY+fmwopwd4kY6utX+OmZ5DAoUdG8=",+        "owner": "numtide",+        "repo": "llm-agents.nix",+        "rev": "699cd7b1346ead916f0958b3dbe78dc32df459d6",+        "type": "github"+      },+      "original": {+        "owner": "numtide",+        "repo": "llm-agents.nix",+        "type": "github"+      }+    },     "nixpkgs": {       "locked": {         "lastModified": 1768564909,@@ -117,8 +161,45 @@         "disko": "disko",         "home-manager": "home-manager",         "impermanence": "impermanence",+        "llm-agents": "llm-agents",         "nixpkgs": "nixpkgs_2"       }+    },+    "systems": {+      "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": 1770228511,+        "narHash": "sha256-wQ6NJSuFqAEmIg2VMnLdCnUc0b7vslUohqqGGD+Fyxk=",+        "owner": "numtide",+        "repo": "treefmt-nix",+        "rev": "337a4fe074be1042a35086f15481d763b8ddc0e7",+        "type": "github"+      },+      "original": {+        "owner": "numtide",+        "repo": "treefmt-nix",+        "type": "github"+      }     }   },   "root": "root",

flake.nix

@@ -1,5 +1,6 @@ {   inputs = {+    # system     nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";     impermanence.url = "github:nix-community/impermanence"; @@ -8,6 +9,10 @@          home-manager.url = "sourcehut:~rycee/home-manager";     home-manager.inputs.nixpkgs.follows = "nixpkgs";++    # misc+    llm-agents.url = "github:numtide/llm-agents.nix";+    llm-agents.inputs.nixpkgs.follows = "nixpkgs";   };    outputs = inputs@{ self, nixpkgs, home-manager, ... }:

home/features/cli/opencode.nix

@@ -1,23 +0,0 @@-{-  programs.opencode = {-    enable = true;-    web.enable = false;--    settings = {-      # go fuck ur self-      #formatter = "false";-      permission = {-        webfetch = "ask";-        read = {-          "*.env" = "deny";-          "*.env.*" = "deny";-          "*.env.example" = "allow";-        };-        bash = {-          "curl *" = "deny";-          "git *" = "deny";-        };-      };-    };-  };-}

home/features/cli/pi.nix

@@ -0,0 +1,9 @@+{ pkgs, ... }:++{+  home = {+    packages = with pkgs; [ inputs.llm-agents.pi ];++    persistence."/persist".files = [ ".pi/agent/auth.json" ]; +  };+}

home/profiles/sunflower.nix

@@ -1,12 +1,12 @@ {   imports = [+    ../features/cli/pi.nix     ../features/cli/gpg.nix     ../features/cli/ssh.nix     ../features/cli/git.nix     ../features/cli/nvim.nix     ../features/cli/bash.nix     ../features/cli/tmux.nix-#    ../features/cli/opencode.nix      ../features/misc/xdg.nix     ../features/misc/vesktop.nix