NixOS: Difference between revisions

imported>Ixxie
imported>Ixxie
Line 71: Line 71:
In addition to declarative system configuration, NixOS offers imperative commands to manage ''user specific'' package management. These operations are managed by the <code>nix-env</code> command line tool. The following is a summary of some common operations that can be performed with it:
In addition to declarative system configuration, NixOS offers imperative commands to manage ''user specific'' package management. These operations are managed by the <code>nix-env</code> command line tool. The following is a summary of some common operations that can be performed with it:


'''Common <code>nix-env</code> Commands:'''
{|  class="wikitable"
{|  class="wikitable"
|+ Basic <code>nix-env</code> Commands
|Searching for packages
|Searching for packages
|<code>nix-env -qaP '.*packagename.*'</code>
|<code>nix-env -qaP '.*packagename.*'</code>
Line 93: Line 93:
Nix ''channels'' are mechanisms for distributing Nix expressions alongside the associated binaries for them. Nix channels are automatically updated once a certain tests are passed in Nixpkgs' Hydra instance.
Nix ''channels'' are mechanisms for distributing Nix expressions alongside the associated binaries for them. Nix channels are automatically updated once a certain tests are passed in Nixpkgs' Hydra instance.


'''Channel Types:'''
{|  class="wikitable"
{|  class="wikitable"
|+ Channel Types
|Stable
|Stable Channels
|''nixos-17.03''
|''nixos-17.03''
|These receive conservative updates for fixing bugs and security vulnerabilities.
|These receive conservative updates for fixing bugs and security vulnerabilities.
|-
|-
|The Unstable Channel
|Unstable
|''nixos-unstable''
|''nixos-unstable''
| Corresponds to the main development branch of Nixpkgs, delivering the latest tested updates.
| Corresponds to the main development branch of Nixpkgs, delivering the latest tested updates.
|-
|-
|Small Channels
|Small
|''nixos-17.03-small'' or ''nixos-unstable-small''
|''nixos-17.03-small'' or ''nixos-unstable-small''
| Identical to their normal namesakes, but containing fewer binaries. This means they update faster but require more to be built from source.
| Identical to their normal namesakes, but containing fewer binaries. This means they update faster but require more to be built from source.