Jump to content

Nix ecosystem/zh-tw: Difference between revisions

From NixOS Wiki
X807x (talk | contribs)
No edit summary
X807x (talk | contribs)
Created page with "{| class="wikitable" |+ Core Components of the Nix Ecosystem |- ! 零件 (Component) ! 手冊 ! 說明 ! 用途 ! 授權協定 (License) |- | NixOS | [https://nixos.org/nixos/manual/ NixOS 手冊] | 一個完全由 Nix 構成 Linux 發行版,因此支持可重建的宣告式系統級設定管理,同時也支持原子升級 (atomic upgrade) 和回朔 (rollback)。 | 宣告式設定的桌面電腦、伺服器和叢集 | MIT |- | Nixpkgs | [https://nixos.org/ni..."
Line 7: Line 7:
== 官方生態系統 ==
== 官方生態系統 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
{| class="wikitable"
{| class="wikitable"
|+ Core Components of the Nix Ecosystem
|+ Core Components of the Nix Ecosystem
|-
|-
! Component
! 零件 (Component)
! Manual
! 手冊
! Description
! 說明
! Use
! 用途
! License
! 授權協定 (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 發行版,因此支持可重建的宣告式系統級設定管理,同時也支持原子升級 (atomic upgrade) 和回朔 (rollback)。
| 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 的持續修建系統 (continuous build system)。
| CI build farms
| CI 建立叢集
| 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 12:39, 8 March 2025

「核心 Nix 生態」是一套技術集合,旨在可重現的方式建立、宣告式配置與管理套件、系統及其相依性。它透過將程式從函數模式轉換成可被系統領域運用的動態、函數式且具備延遲求值特性的領域特定語言 —— Nix 語言,專門用於可重現的方式建立。

此外,有許多其他的 應用程式 (延伸 Nix 生態系統) 由 Nix 社群所開發、使用及支持的核心科技。

官方生態系統

Core Components of the Nix Ecosystem
零件 (Component) 手冊 說明 用途 授權協定 (License)
NixOS NixOS 手冊 一個完全由 Nix 構成 Linux 發行版,因此支持可重建的宣告式系統級設定管理,同時也支持原子升級 (atomic upgrade) 和回朔 (rollback)。 宣告式設定的桌面電腦、伺服器和叢集 MIT
Nixpkgs Nixpkgs 手冊 由社群維護最大的 Nix 軟體套件和 NixOS 模組的儲存庫;標準釋出的 NixOS 也在此。 分享 Nix 轉體套件 & NixOS 模組 MIT
Hydra Hydra 手冊 基於 Nix 的持續修建系統 (continuous build system)。 CI 建立叢集 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.