Skip to content

feat: enhance nix config and bootstrap#1775

Merged
fslongjin merged 9 commits intoDragonOS-Community:masterfrom
fslongjin:feat-enhance-nix-config-and-bootstrap
Feb 11, 2026
Merged

feat: enhance nix config and bootstrap#1775
fslongjin merged 9 commits intoDragonOS-Community:masterfrom
fslongjin:feat-enhance-nix-config-and-bootstrap

Conversation

@fslongjin
Copy link
Member

No description provided.

…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>
@github-actions github-actions bot added the enhancement New feature or request label Feb 9, 2026
@fslongjin fslongjin marked this pull request as ready for review February 9, 2026 13:44
@fslongjin fslongjin force-pushed the feat-enhance-nix-config-and-bootstrap branch from 7eb9c94 to 3d33703 Compare February 9, 2026 14:00
Copy link
Member

@Samuka007 Samuka007 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

除了换源哪一块都没啥问题

# 配置 Nix 镜像
setup_nix_mirror

if [ -n "$(which nix)" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ -n "$(which nix)" ]; then
if command -v nix >/dev/null 2>&1; then

Comment on lines 278 to 282

if [ $? -ne 0 ]; then
echo "Nix 安装失败!"
exit 1
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ $? -ne 0 ]; then
echo "Nix 安装失败!"
exit 1
fi

不需要再判断多一遍

- 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.
@fslongjin fslongjin merged commit 0482f02 into DragonOS-Community:master Feb 11, 2026
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants