How to Install Livebook on NixOS Latest

Livebook is an interactive notebook for writing and running code in multiple programming languages. In this tutorial, we will discuss how to install Livebook on NixOS Latest.

Prerequisites

Before we start with the installation process, you need to have NixOS Latest installed on your system. If you do not have it installed, please refer to the official NixOS documentation to install it.

Installation

To install Livebook on NixOS Latest, follow these steps:

  1. Open your terminal and run the following command to add the Livebook channel to your system:
sudo nix-channel --add https://github.com/livebook-dev/livebook/archive/main.tar.gz livebook
  1. After adding the channel, update your Nix expression cache by running the following command:
sudo nix-env -iA nixos.gitAndTools.livebook
  1. Once the installation is complete, you can start the Livebook service by running the following command:
sudo service livebook start
  1. After starting the service, you can access Livebook on your web browser by visiting the following URL:
http://localhost:8080
  1. When you visit the URL, you will be prompted to enter a password for the Livebook server. Enter a strong password, and you are ready to use Livebook on your NixOS Latest system.

Congratulations! You have successfully installed Livebook on NixOS Latest. You can now create and run interactive notebooks with various programming languages.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!