add devbox-installed nix packages to NixOS build
维护者通常 1 天内回复
@mohsenari 已经在做这个了。
开始于 2026年1月13日。
评估
这个 Issue 还没有评估数据。
描述
What problem are you trying to solve?
Hi,
thanks for devbox. It is great.
It is frustrating however, to not have the devbox packages instantly available in a nixos-rebuild build-vm (nor in a custom NixOS ISO).
I would like to use devbox as my primary package manager for apps and tools. But this workflow completely breaks down because I cannot test small changes to my system config in a build-vm because redownloading all the devbox packages is prohibitively expensive time-wise. As I understand it, devbox uses nix packages under the hood. So it would be absolutely FANTASTIC to have those nix-store-paths available in the VM as well instead of redownloading them after every rebuild. It would also be nice to have them available in the ISO when I generate it from my system config but that is secondary.
What solution would you like?
So telling devbox a directory where to keep an always current "devbox-packages.nix" (with all the pinned nix packages devbox resolved and installed) generated and updated by devbox in a format that I can import in my configuration.nix would be perfect.
I can run a refresh-global in the VM to give devbox the chance to wire everything up and keep to the devbox workflow. It would also have its last devbox.json and devbox.lock available. I would be happy to just have the nix-store-paths magically available during "ensuring packages are installed"
Alternatives you've considered
If that's not possible, I would appreciate a more hacky way as well. Maybe how I can write a shell script to copy over the relevant nix files from devbox to my nixos config dir and import them myself or some brute-force nix-way of letting NixOS know about all the nix-store paths to have them available in the build or even mounting the devbox-installed nix-store-paths somehow along with the system build. (I don't know much about the internals of nix and devbox)
Any help is appreciated.
I also considered setting up a nix cache server. That would speed things up slightly but still involve a lot of useless copying. Making NixOS properly aware of the packages or at least mounting them directly is the better way.
- 主要语言
- Go
- 星标
- 12.4k
- 派生
- 358
- 平均合并
- 17 小时 12 分钟
- 30 天内合并 PR
- 31
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jetify-com/devbox 的其他 Issue
-
feature triage
难度 2/5 1-3 小时 新手友好度 62/100
jetify-com/devbox#3038 ·
维护者通常 1 天内回复
-
bug p4 package processed triage unrelated
难度 2/5 1-3 小时 新手友好度 66/100
jetify-com/devbox#2898 · 2 条评论 ·
维护者通常 1 天内回复
-
p4 processed unrelated
难度 2/5 1-3 小时 新手友好度 65/100
jetify-com/devbox#2750 · 1 条评论 ·
维护者通常 1 天内回复
-
Storyden未关闭p4 package processed triage unrelated
难度 2/5 1-3 小时 新手友好度 62/100
jetify-com/devbox#2685 · 1 条评论 ·
维护者通常 1 天内回复
-
looks easy p4 package processed triage
难度 2/5 1-3 小时 新手友好度 60/100
jetify-com/devbox#2656 · 1 条评论 ·
维护者通常 1 天内回复
查看 jetify-com/devbox 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
SAP/crossplane-provider-btp#1175 ·
维护者通常 1 天内回复
-
adk: stream concatenation errors bypass retry and failover可能已有人在做 @OUAO-FRANK 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
google/osv-scalibr#2586 ·
维护者通常 2 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
stacklok/toolhive-catalog#1890 ·
维护者通常 1 天内回复
-
heap: pushing an item that is already queued corrupts the index可能已有人在做 @lbarrosby 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
kubernetes-sigs/kwok#1800 ·
维护者通常 1 天内回复