Vaultwarden is a popular open-source password manager that lets you store all of your digital credentials securely. It is available for multiple platforms, including NixOS. In this tutorial, we will walk you through the steps to install Vaultwarden on NixOS latest.
Before you begin, make sure that you have the following prerequisites:
Vaultwarden is hosted on GitHub and requires Git to be installed on your system. If Git is not already installed, you can install it by running the following command in the terminal:
sudo nix-env -i git
Next, clone the Vaultwarden repository from GitHub using the following command:
git clone https://github.com/dani-garcia/vaultwarden.git
This will create a new directory called vaultwarden
in your current directory.
Vaultwarden has a few dependencies that must be installed before you can build and run it. To install these dependencies, run the following command:
sudo nix-env -i rust openssl
Now that you have all the dependencies installed, you can build Vaultwarden by running the following command:
cd vaultwarden
cargo build --release
This will take some time to complete. Once the build process is finished, you will find the Vaultwarden binary at target/release/vaultwarden
.
To run Vaultwarden, you’ll need to create a configuration file first. You can do this by running the following command:
cp ./contrib/config-example.toml ./config.toml
Next, edit the config.toml
file and make the necessary changes, such as specifying the database location, setting up SSL, etc. Once you’ve made all the changes, you can start Vaultwarden by running the following command:
./target/release/vaultwarden
By default, Vaultwarden will run on port 3012
. You can access it by visiting http://localhost:3012
in your web browser.
In this tutorial, you learned how to install Vaultwarden on NixOS latest. If you encountered any issues during the installation process, don't hesitate to check out the official documentation available on the Vaultwarden GitHub repository.
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!