nixos: 提高 swap 并修改镜像源

This commit is contained in:
bin456789
2026-09-23 21:45:05 +08:00
parent 808e13bc1b
commit cab470fdec
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1802,7 +1802,8 @@ install_nixos() {
ram_per_thread=2048
threads=$(get_build_threads $ram_per_thread)
swap_size=$(get_need_swap_size $ram_per_thread)
# 最少需要的总内存 = 1 个编译线程所需的内存 + Alpine Live OS 所需的内存 (512M)
swap_size=$(get_need_swap_size $((ram_per_thread + 512)))
show_nixos_config() {
echo