feat: enhance nix config and bootstrap#1775
Merged
fslongjin merged 9 commits intoDragonOS-Community:masterfrom Feb 11, 2026
Merged
feat: enhance nix config and bootstrap#1775fslongjin merged 9 commits intoDragonOS-Community:masterfrom
fslongjin merged 9 commits intoDragonOS-Community:masterfrom
Conversation
…stem QEMU - Add Chinese mirror configuration for Nix to improve download speed - Introduce system QEMU support via`start-system-*`commands - Extend bootstrap script with mirror setup, trusted user, and auto GC configuration - Update Rust toolchain to use rsproxy.cn and wrap binaries with zlib - Add .nix-gc-root to .gitignore and create it automatically in shell hook - Update build container version to v1.20 Signed-off-by: longjin <longjin@DragonOS.org>
Signed-off-by: longjin <longjin@DragonOS.org>
7eb9c94 to
3d33703
Compare
Samuka007
approved these changes
Feb 10, 2026
tools/bootstrap.sh
Outdated
| # 配置 Nix 镜像 | ||
| setup_nix_mirror | ||
|
|
||
| if [ -n "$(which nix)" ]; then |
Member
There was a problem hiding this comment.
Suggested change
| if [ -n "$(which nix)" ]; then | |
| if command -v nix >/dev/null 2>&1; then |
tools/bootstrap.sh
Outdated
Comment on lines
278
to
282
|
|
||
| if [ $? -ne 0 ]; then | ||
| echo "Nix 安装失败!" | ||
| exit 1 | ||
| fi |
Member
There was a problem hiding this comment.
Suggested change
| if [ $? -ne 0 ]; then | |
| echo "Nix 安装失败!" | |
| exit 1 | |
| fi |
不需要再判断多一遍
…nfig-and-bootstrap
- Replace deprecated `which` command with `command -v` for better compatibility. - Remove unnecessary error handling after Nix installation command. This change enhances the robustness of the Nix installation process in the bootstrap script.
- Updated the devcontainer configuration to use the new image version v1.22. - Modified Dockerfile to pull the latest base image v1.22. - Updated GitHub workflows to reference the new image version v1.22 for various jobs. - Adjusted build script to utilize the updated image version v1.22. These changes ensure consistency across the development environment and CI/CD pipelines.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.