GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

NixOS

NixOS is a Linux distribution built around the Nix package manager. Unlike traditional Linux distributions, NixOS is configured using Nix's functional programming language or one of Nix's forks. The operating system builds itself according to declarations written by the user within its config files, allowing them to manage and alter all aspects of their system, as well as install identical builds of that system on any other machine. From those files, NixOS generates complete system profiles, enabling reproducible deployments, atomic upgrades, and system rollbacks. Representing the primary implementation of the Nix package manager, NixOS is often just referred to eponymously as Nix. NixOS... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

NixOS is a Linux distribution built around the Nix package manager. Unlike traditional Linux distributions, NixOS is configured using Nix's functional programming language or one of Nix's forks. The operating system builds itself according to declarations written by the user within its config files, allowing them to manage and alter all aspects of their system, as well as install identical builds of that system on any other machine. From those files, NixOS generates complete system profiles, enabling reproducible deployments, atomic upgrades, and system rollbacks. Representing the primary implementation of the Nix package manager, NixOS is often just referred to eponymously as Nix. NixOS relies on the Nixpkgs collection of package definitions and the Nix expression language for declaring packages and system options. It is free and open-source software under the MIT License. { boot.loader.grub.device = "/dev/sda"; fileSystems."/".device = "/dev/sda1"; services.openssh.enable = true; } Changes may be built and activated with the nixos-rebuild command, which evaluates the configuration, builds the necessary derivations, and produces a new system generation. === Atomic upgrades and rollbacks=== Configurations in Nix are evaluated as pure, declarative expressions. Given the same inputs (such as the Nixpkgs revision and configuration files), evaluation is deterministic and produces the same build plan each time, independent of the machine's prior state. Upgrades and configuration changes to NixOS systems are applied transactionally. New system generations are activated atomically, so that previous generations are retained and may be rolled back. If an upgrade is interrupted (for example, by power failure), the system remains consistent and will boot either the old or the new configuration. After an upgrade, the switch to the new generation can be postponed to the next boot or executed immediately, in which case any affected system services are restarted. If, after a system update, the new configuration is undesirable, it may be rolled back by switching to a previous generation ( nixos-rebuild switch --rollback ). New generations are automatically added to the system bootloader and may be selected prior to boot. Rollbacks are lightweight operations that switch system references to different store paths. ==Notes== ==External links== Official Wiki Nix language manual Nix packages collection

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"NixOS". 1791213343. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1378680218

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·