Livebook is a web application for writing interactive and collaborative code notebooks.
Basic Usage
Enabling the livebook service creates a user
systemd unit
which runs the server.
{ ... }:
{ services.livebook = { enableUserService = true; environment = { LIVEBOOK_PORT = 20123; LIVEBOOK_PASSWORD = "mypassword"; }; # See note below about security environmentFile = "/var/lib/livebook.env"; };}The Livebook
documentation
lists all the applicable environment variables. It is recommended to at least
set LIVEBOOK_PASSWORD or LIVEBOOK_TOKEN_ENABLED=false.
Extra dependencies
By default, the Livebook service is run with minimum dependencies, but
some features require additional packages. For example, the machine
learning Kinos require gcc and gnumake. To add these, use
extraPackages:
{ services.livebook.extraPackages = with pkgs; [ gcc gnumake ];}