![]() | |
![]() | |
Developer | GNU Project[1][2] |
---|---|
OS family | Linux (Unix-like) |
Working state | Current[3] |
Source model | Free software, FSDG |
Latest release | 1.4.0[4] ![]() |
Marketing target | Desktop |
Package manager | GNU Guix |
Platforms | x86_64, i686, aarch64, arm7, powerpc64le |
Kernel type | Monolithic: Linux-libre (operational) Microkernel: GNU Hurd (under development) |
Userland | GNU |
License | GPL |
Official website | guix |
GNU Guix System or Guix System[5][6] (previously GuixSD[7]) is a rolling release, free and open source Linux distribution built around the GNU Guix package manager.[8][9] It enables a declarative operating system configuration[10] and allows reliable system upgrades which the user can rollback.[11] It uses the GNU Shepherd init system[12][13] and the Linux-libre kernel, with support of the GNU Hurd kernel under development.[14] On February 3, 2015, the Free Software Foundation added the distribution to its list of endorsed free Linux distributions.[15] The Guix package manager and the Guix System drew inspiration from and were based on the Nix package manager and NixOS respectively.[16]
The following CPU architectures are supported: IA-32, x86-64, ARM7, AArch64, POWER9.[17][18][19]
System services, defined in Guile Scheme,[20] enable the user to declaratively compose the configuration of daemons and background services and specify configurations. This enables the user, within a single configuration file or modularized configuration, to configure the whole operating system (e.g., to have a tor proxy, an sshd server, and a webserver serving guix-web via nginx on a specific port at bootup). They can:[21]
The Guix System uses the GNU Daemon Shepherd, formerly known as "dmd" ("Daemon managing Daemons"), as its init system, which is developed in tandem with Guix and is written and configurable in Guile.[22] It supplies user-space functionality asynchronously as services, which under Shepherd are generic functions and object data types which it uses to extend the base operating system in a defined way. In contrast to systemd, a userspace shepherd process runs as the user. Central to the Shepherd model of user space initialization is the concept of the extension, a form of composability whereby services are designed to be layered onto other services, augmenting them with more elaborate or specialised behaviours as desired.[23] This expresses the instantiation-based dependency relationships found in many modern init systems,[24] making the system modular, but also allows services to interact variadically with other services in arbitrary ways, e.g. a service which extends two other services, requiring only one to be present, but readily extending the second one if it is later instantiated without the need for any further reconfiguration or setup.
Shepherd also provides virtual services which allow dynamic dispatch over a class of related service objects, such as all those which instantiate a mail transfer agent (MTA) for the system.[25] A system governed via the Shepherd daemon can represent its user space as a directed acyclic graph, with the "system-service," which is responsible for early phases of boot and init, as its root, and all subsequently initialized services as extensions to system-service functionality, either directly or transitively over other services.[23][26]
It is intended to be highly programmable by the system administrator using Guile, but it can also be used to manage per-user profiles of unprivileged daemons and services.[27] Its services and configuration are stored uniformly as object-oriented Scheme code, and while a core set of services are provided with the basic Guix System,[28] arbitrary new services can be flexibly declared, and through Guile's object system, GOOPS, existing services can be redefined at the user's discretion by asking the Shepherd to dynamically rewrite services in specified ways on instantiation.[29][30]
GNU Shepherd was originally designed to work with GNU Hurd, and was later adopted by Guix System.[31]
To date, the Guix System is dependent on unstable git repository development[32] shared with Guix but enables users or organizations to set up stable release channels themselves via the channel-feature.[33]
Packages in Guix are generally very up-to-date thanks to the lack of a package maintainer bottlenecks. Anyone can contribute an update subject to community approval and the process is assisted by tools such as guix refresh.[34]
Changes to the git repository are peer-reviewed by community members and committed by one of the 45 people with commit access.[35] In practice these builds sometimes cause system breakages for users because of a typo or similar error, but these are often solved within minutes. The way Guix pull operates means users retain a working system in the meantime.
If a system update leaves users with a broken system, users can easily roll back individual packages as well as the whole system state.[36] This means that the kind of stable channel that is very common in other Linux distributions is no longer needed for users who are willing to report a bug and wait a few minutes, when trying to update via guix pull.
Jesse Smith from DistroWatch Weekly reviewed GNU Guix System 0.15.0 (at the time named GuixSD), and said, "GuixSD has a package manager that I like", but criticized the limited hardware support and its limited documentation.[37] The documentation has since then been expanded and improved with videos[38] and a cookbook[39] in six languages with tutorials, how-to guides and examples.