Duplicity is a powerful open-source tool that is mainly used for creating encrypted backups of files and directories. In this tutorial, we will learn how to install Duplicity on NixOS Latest from the official website.
Before we start, we must make sure that NixOS is updated to the latest version. Open a terminal and enter the following commands:
sudo nix-channel --update
sudo nixos-rebuild switch
Duplicity requires several dependencies, including Python and GnuPG. Let's use the Nix package manager to install all required dependencies:
sudo nix-env -iA nixos.python35 nixos.gnupg
The latest stable version of Duplicity can be downloaded from the official website. We will use the wget
tool to download it into our home directory:
cd ~
wget https://code.launchpad.net/duplicity/0.8-series/0.8.17/+download/duplicity-0.8.17.tar.gz
Afterward, we will extract the contents of the archive and navigate into the extracted directory:
tar xvf duplicity-0.8.17.tar.gz
cd duplicity-0.8.17
Finally, we will use the setup.py
script to install Duplicity:
sudo python3 setup.py install
To check if Duplicity was installed correctly, we can run the following command:
duplicity --version
If everything worked, the terminal should output the current version of Duplicity.
We have successfully installed Duplicity on NixOS Latest from the official website. This tool can now be used to create encrypted backups of our important files and directories.
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!