Nix ecosystem: Difference between revisions

From NixOS Wiki
imported>Blitz
Update nixbuild info
Nicolas-goudry (talk | contribs)
No edit summary
 
(20 intermediate revisions by 11 users not shown)
Line 1: Line 1:
The ''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 Expression Language]] for specifying reproducible builds.  
<languages/>
<translate>
<!--T:1-->
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 [[Overview of the Nix Language|Nix Language]] for specifying reproducible builds.  


== Open source software ==
<!--T:2-->
In addition there are many other [[applications]] ('''''Extended Nix Ecosystem)''''' developed by the Nix community, utilizing and supporting these core technologies.


== Official ecosystem == <!--T:3-->
<!--T:4-->
{| class="wikitable"
{| class="wikitable"
|+ Core Components of the Nix Ecosystem:
|+ Core Components of the Nix Ecosystem
|-
| ''Component''
| ''Manual''
| ''Description''
| ''Use''
| ''License''
|-
|-
| [[Nix Package Manager | Nix]]
! Component
| [https://nixos.org/nix/manual/ Nix Manual]
! 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.
! Description
| Reproducible builds & package management in Linux & Darwin
! Use
| LGPL-2.1
! License
|-  
|-  
| [[NixOS]]
| [[NixOS]]
| [https://nixos.org/nixos/manual/ NixOS Manual]
| [https://nixos.org/nixos/manual/ 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.  
| 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
| Declaratively configure desktops, servers & clusters
Line 25: Line 26:
|-
|-
| [[Nixpkgs]]
| [[Nixpkgs]]
| [https://nixos.org/nixpkgs/manual/ Nixpkgs Manual]
| [https://nixos.org/nixpkgs/manual/ Nixpkgs Manual]
| The largest community maintained Nix package and NixOS module repository; standard releases of NixOS are hosted here.
| The largest community maintained Nix package and NixOS module repository; standard releases of NixOS are hosted here.
| Share Nix packages & NixOS modules
| Share Nix packages & NixOS modules
| MIT
| MIT
|-
| [[NixOps]]
| [https://nixos.org/nixops/manual/ NixOps Manual]
| A Nix based deployment and provisioning tool allowing declarative specification of remote NixOS systems, VMs and containers; supports AWS, Hetzner, GCE and some other cloud providers out of box.
| Deploy & provision NixOS systems, VMs & containers
| LGPL-3.0
|-
|-
| [[Hydra]]
| [[Hydra]]
| [https://nixos.org/hydra/manual/ Hydra Manual]
| [https://nixos.org/hydra/manual/ Hydra Manual]
| A Nix based continuous build system.
| A Nix based continuous build system.
| CI build farms
| CI build farms
| GPL-3.0
| GPL-3.0
|-
| [[Nix]]
| [https://nixos.org/nix/manual/ 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
|}  
|}  


In addition there are many other [[applications]] developed by the Nix community, utilizing and supporting these core technologies.
<!--T:5-->
 
{| style="max-width: 36rem; margin: auto;"
[[File:Nixos-stack2.png|center|link=]]
|+'''The NixOS core ecosystem stack'''
|style="text-align: center; border: 1px solid #ddd; background: #fafafa; padding: 1.6rem" width="2%"|
<div style="font-size: 1.3em; font-weight: bold">NixOS</div>
A Linux distribution and configuration system built using Nixpkgs
!
|-
|style="text-align: center; border: 1px solid #ddd; background: #fafafa; padding: 1.6rem" width="2%"|
<div style="font-size: 1.3em; font-weight: bold">Nixpkgs</div>
A large, community-maintained repository of packages
|style="text-align: center; border: 1px solid #ddd; background: #fafafa; padding: 1.6rem" width="2%"|
<div style="font-size: 1.3em; font-weight: bold">Hydra</div>
A continuous build system built on Nix
|-
|style="text-align: center; border: 1px solid #ddd; background: #fafafa; padding: 1.6rem" width="2%" colspan="2"|
<div style="font-size: 1.3em; font-weight: bold">Nix</div>
A pure and functional build system
|}


== Services ==
<!--T:6-->
Note: not required for any use of Nix nor affiliated with the NixOS Foundation.
== 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.


* [https://cachix.org Cachix:] binary caches as a service. Free for public caches, subscription for private token-protected caches
<!--T:7-->
* [https://hercules-ci.com Hercules CI:] simplify your CI setup with stateless build agents. Free for open source, per-user subscription for private repositories.
== Development of NixOS ==
* [https://nixbuild.net/ nixbuild.net] remote Nix builders as a service for x86_64 and AArch64. Pay-per-use.
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.




<!--T:8-->
[[Category:Pedias]]
[[Category:Pedias]]
[[Category:Ecosystem]]
[[Category:NixOS]]
[[Category:Incomplete]]
[[Category:nix]]
</translate>

Latest revision as of 13:27, 12 July 2024

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

Core Components of the Nix 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
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.