How to Install PurritoBin on NixOS Latest

PurritoBin is a simple, self-hosted, anti-social pastebin. It's open-source, and anyone can use it. This tutorial will guide you through the installation process of PurritoBin on NixOS Latest.

Prerequisites

Installation

  1. Open the Terminal on your NixOS Latest machine.

  2. Clone the PurritoBin repository from GitHub:

    git clone https://github.com/PurritoBin/PurritoBin.git
    

    This will create a new PurritoBin directory containing the project files.

  3. Navigate to the cloned repository:

    cd PurritoBin
    
  4. Next, you need to install the required dependencies. In NixOS, dependencies are managed using the default.nix file, so we'll use that:

    nix-shell
    

    This will start a new shell session with the required dependencies installed.

  5. Copy the sample configuration file to config.toml:

    cp config.sample.toml config.toml
    
  6. Edit the configuration file as needed. You can set the port number, the URL, and various other options.

  7. Finally, start the PurritoBin server:

    cargo run --release
    

    This will start the server on the port you've specified in the configuration file.

  8. Visit the URL of your PurritoBin instance in your web browser. It should be accessible at http://localhost:<port>.

Congratulations! You've successfully installed PurritoBin on NixOS Latest.

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!