Guix System Distribution

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Guix System Distribution
Guix System Distribution logo.svg
Guixsd-xfce-icecat-emacs.png
GuixSD running Xfce, GNU IceCat and GNU Emacs
Developer GNU Project[1][2]
OS family Unix-like
Working state beta
Source model Free Software
Latest release 0.15.0[3] / 6 July 2018; 4 days ago (2018-07-06)
Latest preview 0.14.0 (beta)[4] / 7 December 2017; 6 months ago (2017-12-07)
Marketing target Desktop
Package manager GNU Guix
Platforms x86_64, i686, arm[5]
Kernel type

Monolithic: Linux-libre (operational)

Microkernel: GNU Hurd (under development)
Userland GNU
License GPL
Official website gnu.org/software/guix

Guix System Distribution (abbreviated GuixSD[6]) is a Linux distribution built around the GNU Guix package manager.[7][8] It uses the Linux-libre kernel, with support for the GNU Hurd under development.[9] On February 3, 2015, the distribution was added to the Free Software Foundation's list of free Linux distributions.[10]

Features[edit]

GNU Guix[edit]

GuixSD is based on GNU Guix, a purely functional package and system configuration manager derived from Nix, using the GNU Guile implementation of the Scheme programming language. All package recipes, as well as the whole system configuration, are written in declarative embedded domain-specific languages in Guile Scheme.[11]

GNU Shepherd[edit]

GuixSD 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.[12]

Shepherd takes some inspiration from systemd, another recent init system, in supplying 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. 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.[13] This expresses the instantiation-based dependency relationships found in many modern init systems,[14] 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 an MTA for the system.[15] 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 over other services.[13][16]

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.[17] 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 Distribution,[18] 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.[19][20]

GNU Shepherd was originally designed to work with GNU Hurd, and was later adopted by GuixSD.[21]

See also[edit]

References[edit]

  1. ^ GuixSD Contributors. "About — GuixSD". gnu.org. Retrieved March 16, 2017. 
  2. ^ "GNU/Linux FAQ - GNU Project - Free Software Foundation". Free Software Foundation. Retrieved 2017-05-14. 
  3. ^ GNU Guix and GuixSD 0.15.0 released — 2018 — Blog — GuixSD
  4. ^ "GNU Guix and GuixSD 0.14.0 released". Retrieved 2017-12-07. 
  5. ^ Mathieu Othacehe. "Porting GuixSD to ARMv7". Retrieved February 17, 2018. 
  6. ^ "What to call Guix?" (Mailing list). gnu-system-discuss. 2015-01-15. 
  7. ^ "List of Free GNU/Linux Distributions". Retrieved February 3, 2015. 
  8. ^ "Guix: A New Package Manager & GNU Distribution". Phoronix. Retrieved February 3, 2015. 
  9. ^ "GNU Guix & GuixSD 0.12.0 released" (Mailing list). guix-devel. 2016-12-21. 
  10. ^ "FSF adds Guix System Distribution to list of endorsed distributions". Free Software Foundation. 3 February 2015. Retrieved February 3, 2015. 
  11. ^ "Programming Interface". 
  12. ^ "guix-devel mailing lists". Retrieved 2016-11-05. 
  13. ^ a b "GNU Guix Reference Manual: Service Composition". GNU Project. Retrieved 2016-11-05. 
  14. ^ "systemd: Unit Dependencies and Order". Fedora Magazine. Retrieved 2016-11-05. 
  15. ^ "The GNU Shepherd Manual: Jump Start". GNU Project. Retrieved 2016-11-05. 
  16. ^ "GNU Guix Reference Manual: Shepherd Services". GNU Project. Retrieved 2016-11-05. 
  17. ^ "The GNU Shepherd Manual". GNU Project. Retrieved 2016-11-05. 
  18. ^ "GNU Guix Reference Manual: Services". GNU Project. Retrieved 2016-11-05. 
  19. ^ "GNU Guix Reference Manual: Service Types and Services". GNU Project. Retrieved 2016-11-05. 
  20. ^ "GNU Guix Reference Manual: Using the Configuration System". GNU Project. Retrieved 2016-11-05. 
  21. ^ "GNU Shepherd". GNU project. Retrieved 2016-02-12. 

External links[edit]