Rustypaste is a command-line utility used for pasting and sharing code snippets. It is written in Rust programming language and can be installed easily on NixOS. This tutorial will guide you through the process of installing Rustypaste on NixOS Latest.
git clone https://github.com/orhun/rustypaste.git
cd
command.cd rustypaste
cargo
package manager.cargo build --release
target/release
directory./etc/nixos/pkgs
if it doesn't already exist.sudo mkdir /etc/nixos/pkgs
/etc/nixos/pkgs
directory.sudo cp target/release/rustypaste /etc/nixos/pkgs
sudo /etc/nixos/pkgs/rustypaste --config > /etc/nixos/pkgs/rustypaste.conf
/etc/nixos/configuration.nix
file to include the paths of the rustypaste executable and the configuration file in the environment.systemPackages
section.environment.systemPackages = with pkgs; [
...
/etc/nixos/pkgs/rustypaste
];
sudo nixos-rebuild switch
rustypaste
command in the terminal. You should see the help menu of rustypaste.Congratulations! You have successfully installed Rustypaste on NixOS Latest. You can now use this command-line utility to paste and share your code snippets.
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!