Skip to content

packages

Define package sets from nixpkgs and install them on one or more machines

System

This service is meant to be consumed by the UI / API, and exposes a JSON serializable interface to add packages to a machine over the inventory.

The example below demonstrates installing the "cbonsai" application to a machine named "server.

instances.packages = {
    roles.default.machines."server".settings = {
        packages = [ "cbonsai" ];
    };
};

Roles

The packages service has the following roles:

  • default

Options for the default role

packages

The packages to install on the machine

Type: list of string

Default:

[ ]
Example
[
  "cowsay"
]

Declared in: clanServices/packages/default.nix