GNU Guix System

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Lua error in package.lua at line 80: module 'strict' not found.

Guix System
100px
300px
Guix System running Xfce, GNU IceCat and GNU Emacs
Developer GNU Project[1][2]
OS family Linux (Unix-like)
Working state Current[3]
Source model Free software, FSDG
Latest release Lua error in Module:Wd at line 405: invalid escape sequence near '"^'. / Lua error in Module:Wd at line 405: invalid escape sequence near '"^'.
Latest preview Lua error in Module:Wd at line 405: invalid escape sequence near '"^'. / Lua error in Module:Wd at line 405: invalid escape sequence near '"^'.
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.org

GNU Guix System or Guix System[4][5] (previously GuixSD[6]) is a rolling release, free and open source Linux distribution built around the GNU Guix package manager.[7][8] It enables a declarative operating system configuration[9] and allows reliable system upgrades that can easily be rolled back.[10] It uses the GNU Shepherd init system[11][12] and the Linux-libre kernel, with support for the GNU Hurd kernel under development.[13] On February 3, 2015, the distribution was added to the Free Software Foundation's list of free Linux distributions.[14] The Guix package manager and the Guix System drew inspiration from the Nix package manager and NixOS respectively. [15]

Architecture support

The following CPU architectures are supported: IA-32, x86-64, ARM7, AArch64, POWER9.[16][17][18]

Features

System services

System services are a core feature in Guix System that enable the user to declaratively compose the configuration of daemons and background services and easily specify the relevant configurations.

This enables the user to within a single configuration file declare the whole OS (e.g., to have a tor proxy, an sshd server, and a webserver serving guix-web via nginx on a specific port at bootup).

System services can:[19]

  • generate files in the filesystem (needed by some applications e.g. files in /etc)
  • run any code for setting up daemons
  • create specific user and group accounts (e.g. a database user for postgresql)

Ricardo Wurmus, one of the maintainers, explains the extendability like this:[19]

<templatestyles src="Template:Blockquote/styles.css" />

Services can extend one another, which allows us to define ways to set up complex applications, for example, that require a web server, user accounts, application-specific daemons, a database, udev rules, etc — all with just one service type.

All the services are defined using Guile Scheme.[20] The list of services continue to grow and as of 1.0.0 the list of services includes the following:[21]

  • Base Services: Essential system services.
  • Scheduled Job Execution: The mcron service.
  • Log Rotation: The rottlog service.
  • Networking Services: Network setup, SSH daemon, etc.
  • X Window: Graphical display.
  • Printing Services: Local and remote printer support.
  • Desktop Services: D-Bus and desktop services.
  • Sound Services: ALSA and Pulseaudio services.
  • Database Services: SQL databases, key-value stores, etc.
  • Mail Services: IMAP, POP3, SMTP, and all that.
  • Messaging Services: Messaging services.
  • Telephony Services: Telephony services.
  • Monitoring Services: Monitoring services.
  • Kerberos Services: Kerberos services.
  • LDAP Services: LDAP services.
  • Web Services: Web servers.
  • Certificate Services: TLS certificates via Let's Encrypt.
  • DNS Services: DNS daemons.
  • VPN Services: VPN daemons.
  • Network File System: NFS related services.
  • Continuous Integration: The Cuirass service.
  • Power Management Services: Extending battery life.
  • Audio Services: The MPD.
  • Virtualization Services: Virtualization services.
  • Version Control Services: Providing remote access to Git repositories.
  • Game Services: Game servers.
  • Miscellaneous Services: Other services.

GNU Shepherd init system

Guix System uses the GNU Daemon Shepherd as its init system, which is developed in tandem with Guix and is written in Guile as well. It was previously known as "dmd", which stood for "Daemon managing Daemons" or "Daemons-managing Daemon", but changed names to avoid collision with the Digital Mars D compiler.[22]

Shepherd supplies user-space functionality asynchronously as services, which under Shepherd are generic functions and object data types that are exported for use by the Shepherd to extend the base operating system in some defined way. In contrast to systemd, a userspace shepherd process runs as that user. Core to the Shepherd model of user space initialisation is the concept of the extension, a form of composability where 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.

Shepherd also provides so-called 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" − responsible for early phases of boot and init − as its root, and all subsequently initialised services as extensions to system-service's functionality, either directly or transitively over other services.[23][26]

Being both written and configured in Guile Scheme, GNU Shepherd is intended to be highly programmable by the system administrator, 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]

Release and stability

Guix System to date has only an unstable development git repository[32] shared with Guix but enables users or organizations to set up stable release channels themselves via the channel-feature.[33]

Updates

Packages in Guix are generally very up-to-date thanks to the lack of a package maintainer bottleneck: 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 sometimes these builds 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.

Roll-back

If a system update should leave users with a broken system, users can easily roll back individual packages as well as the whole system state.[36] This means that a stable channel which 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.

Reception

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.

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. 19.0 19.1 Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. 23.0 23.1 Lua error in package.lua at line 80: module 'strict' not found.
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. Lua error in package.lua at line 80: module 'strict' not found.
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. Lua error in package.lua at line 80: module 'strict' not found.
  35. Lua error in package.lua at line 80: module 'strict' not found.
  36. Lua error in package.lua at line 80: module 'strict' not found.
  37. Lua error in package.lua at line 80: module 'strict' not found.
  38. Lua error in package.lua at line 80: module 'strict' not found.
  39. Lua error in package.lua at line 80: module 'strict' not found.
  40. Lua error in package.lua at line 80: module 'strict' not found.

External links