Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Nodes

The nodes module allows definition of hosts and their NixOS configuration.

Defining nodes

A node is defined via

nodes.<name>.configuration = {
  # (NixOS) configuration of the node <name>
  # ...
};
nodeNames = [ "<name>" ];

If you use the template, the nodes are automatically added to the nodeNames list.

Default values for all nodes

Default nixos configuration values for all nodes (or imports) may be specified via the defaults attribute, which is inherited by all nodes.

defaults.configuration = {
  # default configuration for all nodes
  # ...
};

Nixpkgs versions

Each host may use its own version of nixpkgs which can be specified via the nixpkgs attribute. If not specified, the node inherits the nixpkgs version from the noxa framework.