update opencode to more recent version with overlay

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-07-01 16:15:08 -05:00
parent 78757b8fdb
commit 5eadff9ccd
7 changed files with 117 additions and 50 deletions

View file

@ -4,6 +4,8 @@
home-manager.url = "github:rycee/home-manager/release-25.05";
ragenix.url = "github:yaxitech/ragenix";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
nixpkgs_opencode.url = "github:nixos/nixpkgs/pull/419604/head";
};
outputs =
@ -11,6 +13,7 @@
home-manager,
ragenix,
nix-flatpak,
nixpkgs_opencode,
...
}:
{
@ -23,6 +26,16 @@
}:
{
imports = [
(
{ ... }:
{
nixpkgs.overlays = [
(final: prev: {
opencode = nixpkgs_opencode.legacyPackages.${prev.system}.opencode;
})
];
}
)
home-manager.nixosModules.home-manager
ragenix.nixosModules.age
nix-flatpak.nixosModules.nix-flatpak
@ -36,6 +49,7 @@
./secrets
];
config = {
_module.args = {
inherit ragenix;
};