Wastebin is a web application for creating and sharing paste text. Here's how to install Wastebin on NixOS Latest.
Before installing Wastebin on NixOS Latest, you'll need to make sure you have the following installed:
You can install each of these using the following commands:
# Install Git
sudo apt install git
# Install Nix package manager
curl https://nixos.org/nix/install | sh
# Install NixOS Latest
sudo nixos-rebuild switch --upgrade
Once you have the prerequisites installed, you can clone the Wastebin repository and build the application.
# Clone Wastebin repository
git clone https://github.com/matze/wastebin.git
# Change directory to the Wastebin repository
cd wastebin
# Use Nix to build Wastebin
nix-build
Once the installation is complete, you'll be able to run Wastebin by running the following command:
./result/bin/wastebin
This will start the Wastebin server, which will be available at localhost:3000
by default.
By default, Wastebin will store the pastes in a SQLite database in the data
directory. You can configure the database by modifying the config.yaml
file. For example, if you want to use a PostgreSQL database, you can add the following to the config.yaml
file:
database:
type: postgresql
host: localhost
name: wastebin
user: wastebin
password: secret
Once you've made your changes to the config.yaml
file, you can rebuild Wastebin and start the server again.
Congratulations! You now have Wastebin installed and running on NixOS Latest. You can create and share pastes by visiting localhost:3000
in your web browser. Happy pasting!
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!