1 # Livebook {#module-services-livebook}
3 [Livebook](https://livebook.dev/) is a web application for writing
4 interactive and collaborative code notebooks.
6 ## Basic Usage {#module-services-livebook-basic-usage}
8 Enabling the `livebook` service creates a user
9 [`systemd`](https://www.freedesktop.org/wiki/Software/systemd/) unit
10 which runs the server.
17 enableUserService = true;
19 # See note below about security
20 environmentFile = pkgs.writeText "livebook.env" ''
21 LIVEBOOK_PASSWORD = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
29 The Livebook server has the ability to run any command as the user it
30 is running under, so securing access to it with a password is highly
33 Putting the password in the Nix configuration like above is an easy
34 way to get started but it is not recommended in the real world because
35 the `livebook.env` file will be added to the world-readable Nix store.
36 A better approach would be to put the password in some secure
37 user-readable location and set `environmentFile = /home/user/secure/livebook.env`.