Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 831 Bytes

services.md

File metadata and controls

28 lines (18 loc) · 831 Bytes

Managing services with Organist

Organist allows you to declare a set of services that need to be running when developing your project, through the services option, exposed by organist.services.

These can then be started with nix run .#start-services start.

For instance, if the project.ncl contains:

let redis_listen_port = 64442 in
organist.OrganistExpression
& organist.services
& {
  config.services.redis = nix-s%"%{organist.import_nix "nixpkgs#redis"}/bin/redis-server --port %{std.to_string redis_listen_port}"%,
}

then running nix run .#start-services start will run a local redis instance listening on port 64442.

A more complete example can be found here.

Exposed options

services

  • { _ : NixString }

Services required for development.