Nix ecosystem: Difference between revisions
Adjust the position of page translation tags & Add `tvar` tags |
Marked this version for translation |
||
| Line 13: | Line 13: | ||
|+ <translate><!--T:4--> Core Components of the Nix Ecosystem</translate> | |+ <translate><!--T:4--> Core Components of the Nix Ecosystem</translate> | ||
|- | |- | ||
! <translate>Component</translate> | ! <translate><!--T:16--> Component</translate> | ||
! <translate>Manual</translate> | ! <translate><!--T:17--> Manual</translate> | ||
! <translate>Description</translate> | ! <translate><!--T:18--> Description</translate> | ||
! <translate>Use</translate> | ! <translate><!--T:19--> Use</translate> | ||
! <translate>License</translate> | ! <translate><!--T:20--> License</translate> | ||
|- | |- | ||
| [[Special:MyLanguage/NixOS|NixOS]] | | [[Special:MyLanguage/NixOS|NixOS]] | ||
| <translate>[https://nixos.org/nixos/manual/ NixOS Manual]</translate> | | <translate><!--T:21--> [https://nixos.org/nixos/manual/ NixOS Manual]</translate> | ||
| <translate>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.</translate> | | <translate><!--T:22--> 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.</translate> | ||
| <translate>Declaratively configure desktops, servers & clusters</translate> | | <translate><!--T:23--> Declaratively configure desktops, servers & clusters</translate> | ||
| MIT | | MIT | ||
|- | |- | ||
| [[Special:MyLanguage/Nixpkgs|Nixpkgs]] | | [[Special:MyLanguage/Nixpkgs|Nixpkgs]] | ||
| <translate>[https://nixos.org/nixpkgs/manual/ Nixpkgs Manual]</translate> | | <translate><!--T:24--> [https://nixos.org/nixpkgs/manual/ Nixpkgs Manual]</translate> | ||
| <translate>The largest community maintained Nix package and NixOS module repository; standard releases of NixOS are hosted here.</translate> | | <translate><!--T:25--> The largest community maintained Nix package and NixOS module repository; standard releases of NixOS are hosted here.</translate> | ||
| <translate>Share Nix packages & NixOS modules</translate> | | <translate><!--T:26--> Share Nix packages & NixOS modules</translate> | ||
| MIT | | MIT | ||
|- | |- | ||
| [[Special:MyLanguage/Hydra|Hydra]] | | [[Special:MyLanguage/Hydra|Hydra]] | ||
| <translate>[https://nixos.org/hydra/manual/ Hydra Manual]</translate> | | <translate><!--T:27--> [https://nixos.org/hydra/manual/ Hydra Manual]</translate> | ||
| <translate>A Nix based continuous build system.</translate> | | <translate><!--T:28--> A Nix based continuous build system.</translate> | ||
| <translate>CI build farms</translate> | | <translate><!--T:29--> CI build farms</translate> | ||
| GPL-3.0 | | GPL-3.0 | ||
|- | |- | ||
| [[Special:MyLanguage/Nix|Nix]] | | [[Special:MyLanguage/Nix|Nix]] | ||
| <translate>[https://nixos.org/nix/manual/ Nix Manual]</translate> | | <translate><!--T:30--> [https://nixos.org/nix/manual/ Nix Manual]</translate> | ||
| <translate>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.</translate> | | <translate><!--T:31--> 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.</translate> | ||
| <translate>Reproducible builds & package management in Linux & Darwin</translate> | | <translate><!--T:32--> Reproducible builds & package management in Linux & Darwin</translate> | ||
| LGPL-2.1 | | LGPL-2.1 | ||
|} | |} | ||
| Line 49: | Line 49: | ||
| style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%"| | | style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%"| | ||
<div style="font-size: 1.3em; font-weight: bold">NixOS</div> | <div style="font-size: 1.3em; font-weight: bold">NixOS</div> | ||
<translate>A Linux distribution and configuration system built using Nixpkgs.</translate> | <translate><!--T:33--> A Linux distribution and configuration system built using Nixpkgs.</translate> | ||
|- | |- | ||
| style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%"| | | style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%"| | ||
<div style="font-size: 1.3em; font-weight: bold">Nixpkgs</div> | <div style="font-size: 1.3em; font-weight: bold">Nixpkgs</div> | ||
<translate>A large, community-maintained repository of packages.</translate> | <translate><!--T:34--> A large, community-maintained repository of packages.</translate> | ||
| style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%"| | | style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%"| | ||
<div style="font-size: 1.3em; font-weight: bold">Hydra</div> | <div style="font-size: 1.3em; font-weight: bold">Hydra</div> | ||
<translate>A continuous build system built on Nix.</translate> | <translate><!--T:35--> A continuous build system built on Nix.</translate> | ||
|- | |- | ||
| style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%" colspan="2"| | | style="text-align: center; border: 1px solid var(--border-color-base); background: var(--background-color-neutral); padding: 1.6rem" width="2%" colspan="2"| | ||
<div style="font-size: 1.3em; font-weight: bold">Nix</div> | <div style="font-size: 1.3em; font-weight: bold">Nix</div> | ||
<translate>A pure and functional build system.</translate> | <translate><!--T:36--> A pure and functional build system.</translate> | ||
|} | |} | ||
<translate> | <translate> | ||
<!--T:6--> | == Usage of NixOS == <!--T:6--> | ||
<!--T:37--> | |||
Users install the ''NixOS'' distribution on their computers just as any other Linux distribution. They read about packages to install and configuration options in ''Nixpkgs'' 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. | Users install the ''NixOS'' distribution on their computers just as any other Linux distribution. They read about packages to install and configuration options in ''Nixpkgs'' 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. | ||
<!--T:7--> | == Development of NixOS == <!--T:7--> | ||
<!--T:38--> | |||
Developers of ''NixOS'' mainly work on ''Nixpkgs''. ''NixOS'' development itself is compromised of three large areas as well as some others which are smaller by volume (but no less important). The major ones include packaging, the module system, and documentation. | Developers of ''NixOS'' mainly work on ''Nixpkgs''. ''NixOS'' development itself is compromised of three large areas as well as some others which are smaller by volume (but no less important). The major ones include packaging, the module system, and documentation. | ||
| Line 92: | Line 92: | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ <translate><!--T:9--> Various examples of ''NixOS'' development along with links.</translate> | |+ <translate><!--T:9--> Various examples of ''NixOS'' development along with links.</translate> | ||
! <translate>Type of development</translate> !! <translate>Location of Development</translate> !! <translate>Examples</translate> | ! <translate><!--T:39--> Type of development</translate> !! <translate><!--T:40--> Location of Development</translate> !! <translate><!--T:41--> Examples</translate> | ||
|- | |- | ||
| <translate>Platform Agnostic Packaging</translate> || ''Nixpkgs'' || <translate>[<tvar name=1>https://github.com/NixOS/nixpkgs/blob/bf3287dac860542719fe7554e21e686108716879/pkgs/tools/misc/coreutils/default.nix</tvar> coreutils package], [<tvar name=2>https://github.com/NixOS/nixpkgs/tree/5fe6820251dfab92c84ff356a7c7c336f8d8490c/pkgs/stdenv</tvar> ''stdenv'' framework], [<tvar name=3>https://github.com/NixOS/nixpkgs/blob/5fe6820251dfab92c84ff356a7c7c336f8d8490c/pkgs/applications/office/libreoffice/default.nix</tvar> Libreoffice package]</translate> | | <translate><!--T:42--> Platform Agnostic Packaging</translate> || ''Nixpkgs'' || <translate><!--T:43--> [<tvar name=1>https://github.com/NixOS/nixpkgs/blob/bf3287dac860542719fe7554e21e686108716879/pkgs/tools/misc/coreutils/default.nix</tvar> coreutils package], [<tvar name=2>https://github.com/NixOS/nixpkgs/tree/5fe6820251dfab92c84ff356a7c7c336f8d8490c/pkgs/stdenv</tvar> ''stdenv'' framework], [<tvar name=3>https://github.com/NixOS/nixpkgs/blob/5fe6820251dfab92c84ff356a7c7c336f8d8490c/pkgs/applications/office/libreoffice/default.nix</tvar> Libreoffice package]</translate> | ||
|- | |- | ||
| <translate>Platform Agnostic Tooling</translate> || <translate>''Nixpkgs'' and various repositories</translate> || <translate>[<tvar name=1>https://github.com/NixOS/nix</tvar> upstream/default Nix implementation (CppNix)], [<tvar name=2>https://github.com/NixOS/hydra</tvar> ''Hydra'' source code], [<tvar name=3>https://github.com/NixOS/nixpkgs-merge-bot</tvar> ''Nixpkgs'' merge bot]</translate> | | <translate><!--T:44--> Platform Agnostic Tooling</translate> || <translate><!--T:45--> ''Nixpkgs'' and various repositories</translate> || <translate><!--T:46--> [<tvar name=1>https://github.com/NixOS/nix</tvar> upstream/default Nix implementation (CppNix)], [<tvar name=2>https://github.com/NixOS/hydra</tvar> ''Hydra'' source code], [<tvar name=3>https://github.com/NixOS/nixpkgs-merge-bot</tvar> ''Nixpkgs'' merge bot]</translate> | ||
|- | |- | ||
| <translate>''NixOS'' Tooling</translate> || <translate>mostly ''Nixpkgs''</translate> || <translate>[<tvar name=1>https://github.com/NixOS/nixpkgs/tree/5fe6820251dfab92c84ff356a7c7c336f8d8490c/pkgs/by-name/ni/nixos-rebuild-ng</tvar> nixos-rebuild-ng source code], [<tvar name=2>https://github.com/NixOS/nixpkgs/blob/5fe6820251dfab92c84ff356a7c7c336f8d8490c/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix</tvar> ''NixOS'' Installation ISOs]</translate> | | <translate><!--T:47--> ''NixOS'' Tooling</translate> || <translate><!--T:48--> mostly ''Nixpkgs''</translate> || <translate><!--T:49--> [<tvar name=1>https://github.com/NixOS/nixpkgs/tree/5fe6820251dfab92c84ff356a7c7c336f8d8490c/pkgs/by-name/ni/nixos-rebuild-ng</tvar> nixos-rebuild-ng source code], [<tvar name=2>https://github.com/NixOS/nixpkgs/blob/5fe6820251dfab92c84ff356a7c7c336f8d8490c/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix</tvar> ''NixOS'' Installation ISOs]</translate> | ||
|- | |- | ||
| <translate>''NixOS'' Module System</translate> || ''Nixpkgs'' || <translate>[<tvar name=1>https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/display-managers/default.nix</tvar> Display Manager configuration], [<tvar name=2>https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/mysql.nix</tvar> MySQL (and derivative) database configuration]</translate> | | <translate><!--T:50--> ''NixOS'' Module System</translate> || ''Nixpkgs'' || <translate><!--T:51--> [<tvar name=1>https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/display-managers/default.nix</tvar> Display Manager configuration], [<tvar name=2>https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/mysql.nix</tvar> MySQL (and derivative) database configuration]</translate> | ||
|- | |- | ||
| <translate>Infrastructure</translate> || || <translate>[<tvar name=1>https://github.com/NixOS/nixos-wiki-infra</tvar> Infrastructure for this Wiki], [<tvar name=2>https://github.com/NixOS/infra</tvar> ''NixOS'' infra]</translate> | | <translate><!--T:52--> Infrastructure</translate> || || <translate><!--T:53--> [<tvar name=1>https://github.com/NixOS/nixos-wiki-infra</tvar> Infrastructure for this Wiki], [<tvar name=2>https://github.com/NixOS/infra</tvar> ''NixOS'' infra]</translate> | ||
|- | |- | ||
| <translate>Documentation</translate> || || <translate>[<tvar name=1>https://wiki.nixos.org</tvar> This Wiki], [<tvar name=2>https://github.com/NixOS/nixpkgs/blob/8d92119c540d78599ba208010c722a60958810f4/doc/stdenv/stdenv.chapter.md</tvar> ''stdenv'' documentation], [<tvar name=3>https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/configuration/ipv6-config.section.md</tvar> ''NixOS'' IPv6 configuration] (visible in the [<tvar name=4>https://nixos.org/manual/nixos/stable/#sec-ipv6</tvar> IPv6 section of the ''NixOS'' manual]), [<tvar name=5>https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md</tvar> ''Nixpkgs'' Contribution Guidelines]</translate> | | <translate><!--T:54--> Documentation</translate> || || <translate><!--T:55--> [<tvar name=1>https://wiki.nixos.org</tvar> This Wiki], [<tvar name=2>https://github.com/NixOS/nixpkgs/blob/8d92119c540d78599ba208010c722a60958810f4/doc/stdenv/stdenv.chapter.md</tvar> ''stdenv'' documentation], [<tvar name=3>https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/configuration/ipv6-config.section.md</tvar> ''NixOS'' IPv6 configuration] (visible in the [<tvar name=4>https://nixos.org/manual/nixos/stable/#sec-ipv6</tvar> IPv6 section of the ''NixOS'' manual]), [<tvar name=5>https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md</tvar> ''Nixpkgs'' Contribution Guidelines]</translate> | ||
|- | |- | ||
| <translate>Tech Organisation</translate> || || <translate>[<tvar name=1>https://github.com/NixOS/nixpkgs/issues/390768</tvar> ''NixOS'' RelEng], [<tvar name=2>https://github.com/NixOS/rfcs/</tvar> ''Nix'' and ''NixOS'' RFCs]</translate> | | <translate><!--T:56--> Tech Organisation</translate> || || <translate><!--T:57--> [<tvar name=1>https://github.com/NixOS/nixpkgs/issues/390768</tvar> ''NixOS'' RelEng], [<tvar name=2>https://github.com/NixOS/rfcs/</tvar> ''Nix'' and ''NixOS'' RFCs]</translate> | ||
|- | |- | ||
| <translate>Other</translate> || || <translate>[<tvar name=1>https://github.com/NixOS/nixos-artwork</tvar> ''NixOS'' artwork], [<tvar name=2>https://discourse.nixos.org/</tvar> ''NixOS'' (and related) discourse], [<tvar name=3>https://github.com/NixOS/foundation</tvar> ''NixOS Foundation'']</translate> | | <translate><!--T:58--> Other</translate> || || <translate><!--T:59--> [<tvar name=1>https://github.com/NixOS/nixos-artwork</tvar> ''NixOS'' artwork], [<tvar name=2>https://discourse.nixos.org/</tvar> ''NixOS'' (and related) discourse], [<tvar name=3>https://github.com/NixOS/foundation</tvar> ''NixOS Foundation'']</translate> | ||
|} | |} | ||
Latest revision as of 08:51, 8 March 2026
The Core Nix Ecosystem is a collection of technologies designed to reproducibly build and declaratively configure and manage packages and systems as well as their dependencies. It achieves this by translating the functional paradigm from the program to the system domain by utilizing a dynamic, functional and lazy DSL called the Nix Language for specifying reproducible builds.
In addition there are many other applications (Extended Nix Ecosystem) developed by the Nix community, utilizing and supporting these core technologies.
Official ecosystem
| Component | Manual | Description | Use | License |
|---|---|---|---|---|
| NixOS | NixOS Manual | 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. | Declaratively configure desktops, servers & clusters | MIT |
| Nixpkgs | Nixpkgs Manual | The largest community maintained Nix package and NixOS module repository; standard releases of NixOS are hosted here. | Share Nix packages & NixOS modules | MIT |
| Hydra | Hydra Manual | A Nix based continuous build system. | CI build farms | GPL-3.0 |
| Nix | Nix Manual | 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. | Reproducible builds & package management in Linux & Darwin | LGPL-2.1 |
|
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 Nixpkgs 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. NixOS development itself is compromised of three large areas as well as some others which are smaller by volume (but no less important). The major ones include packaging, the module system, and documentation.
- Packaging is done in Nixpkgs and is not exclusive to NixOS or even Linux-based platforms. Maintainers of packages which are not exclusive to NixOS (such as tooling required to run the distribution itself) usually take care of multiple platforms although not strictly required.
- The module system is the way in which services running on NixOS are primarily configured. This area stretches from "low-level" configuration such as systemd unit files or providing custom kernel configuration up to configuration file generation for specific services. The module system is the primary way for users to configure NixOS, and lives in the
nixos/subdirector of Nixpkgs.
- Documentation is largely embedded in packaging and module system data, although free-standing markdown files are also contained in the Nixpkgs repository. Documentation also includes maintaining the website, Wiki, and other aspects of the wider ecosystem. The first two categories are almost exclusively Nix language code written in text files, while the latter is a mix of Nix code, markdown files, and various other formats.
All contributions to Nixpkgs, regardless of whether they affect NixOS or not, are subject to peer review before being integrated into Nixpkgs. Many packages alongside documentation and supplementary materials such as ISOs or tarballs are pre built on Hydra to reduce the update time for NixOS users.
Those three categories are largest by contribution volume, however many maintainers also engage in activities surrounding the NixOS foundation, maintaining the infrastructure on which website, Hydra, and other tools run on, or developing tooling required for NixOS.
| Type of development | Location of Development | Examples |
|---|---|---|
| Platform Agnostic Packaging | Nixpkgs | coreutils package, stdenv framework, Libreoffice package |
| Platform Agnostic Tooling | Nixpkgs and various repositories | upstream/default Nix implementation (CppNix), Hydra source code, Nixpkgs merge bot |
| NixOS Tooling | mostly Nixpkgs | nixos-rebuild-ng source code, NixOS Installation ISOs |
| NixOS Module System | Nixpkgs | Display Manager configuration, MySQL (and derivative) database configuration |
| Infrastructure | Infrastructure for this Wiki, NixOS infra | |
| Documentation | This Wiki, stdenv documentation, NixOS IPv6 configuration (visible in the IPv6 section of the NixOS manual), Nixpkgs Contribution Guidelines | |
| Tech Organisation | NixOS RelEng, Nix and NixOS RFCs | |
| Other | NixOS artwork, NixOS (and related) discourse, NixOS Foundation |
See also: Nix organisation repository