feat(opencode): add flake input and overlay

This commit is contained in:
tux
2026-08-22 16:58:15 +05:30
parent ba22699df3
commit 7f0d55c597
4 changed files with 44 additions and 6 deletions

45
flake.lock generated
View File

@@ -1396,6 +1396,22 @@
}
},
"nixpkgs_15": {
"locked": {
"lastModified": 1776683584,
"narHash": "sha256-NuTLMrr10Tng72hurYG8jYQ4XKK8wnpJmOGcPiis96g=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9dd5558b06dbdacbf635a3dd36dce1b1a7ee3a89",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_16": {
"locked": {
"lastModified": 1782175435,
"narHash": "sha256-EMzXKmnOtBQ2MnvpiNOm7E+kOMvdPrIKaeg52Tip2Uk=",
@@ -1411,7 +1427,7 @@
"type": "github"
}
},
"nixpkgs_16": {
"nixpkgs_17": {
"locked": {
"lastModified": 1770107345,
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
@@ -1427,7 +1443,7 @@
"type": "github"
}
},
"nixpkgs_17": {
"nixpkgs_18": {
"locked": {
"lastModified": 1774386573,
"narHash": "sha256-4hAV26quOxdC6iyG7kYaZcM3VOskcPUrdCQd/nx8obc=",
@@ -1648,6 +1664,24 @@
"type": "github"
}
},
"opencode": {
"inputs": {
"nixpkgs": "nixpkgs_15"
},
"locked": {
"lastModified": 1787358356,
"narHash": "sha256-j2Wxi3gdXEbL8n4VHP2gztSmofXDIZ/XZpyzE6etNyU=",
"owner": "anomalyco",
"repo": "opencode",
"rev": "e00890c67261a435cee6409366a68999a93393fd",
"type": "github"
},
"original": {
"owner": "anomalyco",
"repo": "opencode",
"type": "github"
}
},
"pre-commit": {
"inputs": {
"flake-compat": "flake-compat_5",
@@ -1767,6 +1801,7 @@
"nixpkgs": "nixpkgs_13",
"nixpkgs-stable": "nixpkgs-stable",
"nur": "nur",
"opencode": "opencode",
"sops-nix": "sops-nix",
"tnvim": "tnvim",
"tpanel": "tpanel",
@@ -1918,7 +1953,7 @@
},
"sops-nix": {
"inputs": {
"nixpkgs": "nixpkgs_15"
"nixpkgs": "nixpkgs_16"
},
"locked": {
"lastModified": 1786629091,
@@ -2088,7 +2123,7 @@
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": "nixpkgs_16"
"nixpkgs": "nixpkgs_17"
},
"locked": {
"lastModified": 1786901030,
@@ -2198,7 +2233,7 @@
"voxtype": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_17"
"nixpkgs": "nixpkgs_18"
},
"locked": {
"lastModified": 1780004034,

View File

@@ -84,5 +84,6 @@
copyparty.url = "github:9001/copyparty";
hermes-agent.url = "github:NousResearch/hermes-agent";
voxtype.url = "github:peteonrails/voxtype/v0.7.5";
opencode.url = "github:anomalyco/opencode";
};
}

View File

@@ -14,6 +14,7 @@
awww = inputs.awww.packages.${prev.stdenv.hostPlatform.system}.awww;
vicinae-extensions = inputs.vicinae-extensions.packages.${prev.stdenv.hostPlatform.system};
voxtype = inputs.voxtype.packages.${prev.stdenv.hostPlatform.system};
opencode-git = inputs.opencode.packages.${prev.stdenv.hostPlatform.system}.default;
nix-index-small =
inputs.nix-index-database.packages.${prev.stdenv.hostPlatform.system}.nix-index-with-small-db;
};

View File

@@ -1,7 +1,8 @@
{
flake.modules.homeManager.shell = {
flake.modules.homeManager.shell = { pkgs, ... }: {
programs.opencode = {
enable = true;
package = pkgs.opencode-git;
tui = {
theme = "system";
};