chore: cleanup nix (#8964)

This commit is contained in:
Caleb Norton
2026-01-16 16:59:34 -06:00
committed by GitHub
parent aca1eb6b5b
commit 6e020ef9ef
3 changed files with 7 additions and 28 deletions

1
.gitignore vendored
View File

@@ -20,6 +20,7 @@ opencode.json
a.out a.out
target target
.scripts .scripts
.direnv/
# Local dev files # Local dev files
opencode-dev opencode-dev

6
flake.lock generated
View File

@@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1768395095, "lastModified": 1768302833,
"narHash": "sha256-ZhuYJbwbZT32QA95tSkXd9zXHcdZj90EzHpEXBMabaw=", "narHash": "sha256-h5bRFy9bco+8QcK7rGoOiqMxMbmn21moTACofNLRMP4=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "13868c071cc73a5e9f610c47d7bb08e5da64fdd5", "rev": "61db79b0c6b838d9894923920b612048e1201926",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -7,6 +7,7 @@
outputs = outputs =
{ {
self,
nixpkgs, nixpkgs,
... ...
}: }:
@@ -107,33 +108,10 @@
}; };
in in
{ {
default = opencodePkg; default = self.packages.${system}.opencode;
opencode = opencodePkg;
desktop = desktopPkg; desktop = desktopPkg;
} }
); );
apps = forEachSystem (
system:
let
pkgs = pkgsFor system;
in
{
opencode-dev = {
type = "app";
meta = {
description = "Nix devshell shell for OpenCode";
runtimeInputs = [ pkgs.bun ];
};
program = "${
pkgs.writeShellApplication {
name = "opencode-dev";
text = ''
exec bun run dev "$@"
'';
}
}/bin/opencode-dev";
};
}
);
}; };
} }