Jump to content

Nix ecosystem/zh: Difference between revisions

From Official NixOS Wiki
Weijia (talk | contribs)
Created page with "== 官方生态系统 =="
Weijia (talk | contribs)
Created page with "{| class="wikitable" |+ Nix 生态系统核心组件 |- ! 组件 ! 手册(Manual) ! 描述 ! 用途 ! 协议 |- | NixOS | [https://nixos.org/nixos/manual/ NixOS 手册] | 一个由 Nix 构建''所有''组件的 Linux 发行版,因此支持可重现的、声明式的全系统配置管理以及原子升级和回滚。 | 声明式配置桌面、服务器和集群。 | MIT |- | Nixpkgs | [https://nixos.org/nixpkgs/manual/ Nixpkgs 手册] | 最大的社区维护的..."
Line 7: Line 7:
== 官方生态系统 ==
== 官方生态系统 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
{| class="wikitable"
{| class="wikitable"
|+ Core Components of the Nix Ecosystem
|+ Nix 生态系统核心组件
|-
|-
! Component
! 组件
! Manual
! 手册(Manual)
! Description
! 描述
! Use
! 用途
! License
! 协议
|-  
|-  
| [[NixOS]]
| [[NixOS]]
| [https://nixos.org/nixos/manual/ NixOS Manual]
| [https://nixos.org/nixos/manual/ NixOS 手册]
| A Linux distribution with ''all'' components built by Nix, and thus supporting reproducible and declarative system-wide configuration management as well as atomic upgrades and rollbacks.
| 一个由 Nix 构建''所有''组件的 Linux 发行版,因此支持可重现的、声明式的全系统配置管理以及原子升级和回滚。
| Declaratively configure desktops, servers & clusters
| 声明式配置桌面、服务器和集群。
| MIT
| MIT
|-
|-
| [[Nixpkgs]]
| [[Nixpkgs]]
| [https://nixos.org/nixpkgs/manual/ Nixpkgs Manual]
| [https://nixos.org/nixpkgs/manual/ Nixpkgs 手册]
| The largest community maintained Nix package and NixOS module repository; standard releases of NixOS are hosted here.
| 最大的社区维护的 Nix 软件包和 NixOS 模块仓库,NixOS 的标准版本也托管在这里。
| Share Nix packages & NixOS modules
| 分享 Nix 软件包和 NixOS 模块
| MIT
| MIT
|-
|-
| [[Hydra]]
| [[Hydra]]
| [https://nixos.org/hydra/manual/ Hydra Manual]
| [https://nixos.org/hydra/manual/ Hydra 手册]
| A Nix based continuous build system.
| 基于 Nix 的持续构建系统
| CI build farms
| 持续构建集群
| GPL-3.0
| GPL-3.0
|-
|-
| [[Nix]]
| [[Nix]]
| [https://nixos.org/nix/manual/ Nix Manual]
| [https://nixos.org/nix/manual/ Nix 手册]
| A package manager that parses Nix expressions specifying reproducible build, putting the result in a store address with a hash of the dependency tree, sidestepping dependency hell and supporting multiversion installs and rollbacks.
| 一款软件包管理器,能解析指定可重现构建的 Nix 表达式,并将结果与依赖关系树的哈希值一起放入存储地址,从而避免依赖关系地狱,并支持多版本安装和回滚。
| Reproducible builds & package management in Linux & Darwin
| Linux Darwin 中的可重现构建和软件包管理
| LGPL-2.1
| LGPL-2.1
|}
|}  
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 19:47, 28 August 2025

Nix 核心生態系統是一組技術的集合,旨在以可復現的方式構建、聲明性地配置和管理軟件包、系統及其依賴項。它通過將函數式編程範式從程序領域擴展到系統領域來實現這一目標,並使用一種動態的、函數式的、惰性求值的領域特定語言(DSL),即 Nix 語言,來指定可復現的構建過程。

此外,還有許多由 Nix 社區開發的應用程式Nix 擴展生態系統)利用並支持了這些核心技術。

官方生態系統

Nix 生態系統核心組件
組件 手冊(Manual) 描述 用途 協議
NixOS NixOS 手冊 一個由 Nix 構建所有組件的 Linux 發行版,因此支持可重現的、聲明式的全系統配置管理以及原子升級和回滾。 聲明式配置桌面、伺服器和集群。 MIT
Nixpkgs Nixpkgs 手冊 最大的社區維護的 Nix 軟件包和 NixOS 模塊倉庫,NixOS 的標準版本也託管在這裏。 分享 Nix 軟件包和 NixOS 模塊 MIT
Hydra Hydra 手冊 基於 Nix 的持續構建系統 持續構建集群 GPL-3.0
Nix Nix 手冊 一款軟件包管理器,能解析指定可重現構建的 Nix 表達式,並將結果與依賴關係樹的哈希值一起放入存儲地址,從而避免依賴關係地獄,並支持多版本安裝和回滾。 Linux 和 Darwin 中的可重現構建和軟件包管理 LGPL-2.1
The NixOS core ecosystem stack
NixOS

A Linux distribution and configuration system built using Nixpkgs

Nixpkgs

A large, community-maintained repository of packages

Hydra

A continuous build system built on Nix

Nix

A pure and functional build system

Usage of NixOS

Users install the NixOS distribution on their computers just as any other Linux distribution. They read about packages to install and configuration options in Nixpgs via https://search.nixos.org and this wiki. They use the Nix language to declaratively describe in a text file what software packages should be installed and how the system should be configured. They run 2 command line programs in a terminal to transform the system into the described system. They use the system as any other Linux system.

Development of NixOS

Developers of NixOS mainly work on Nixpkgs to describe in text files in Nix language how software packages should be build. After peer review these changes are integrated in Nixpkgs. Some of these packages are pre built on Hydra to reduce the update time for NixOS users.