In this tutorial, we will go over how to install Passbolt, an open-source and secure password manager, on the latest nixOS version.
First, you need to install the latest version of nixOS on your system. You can download it from the official website of NixOS, and then follow the installation guide.
After installing nixOS, update your system by running the following command:
sudo nix-channel --update
sudo nixos-rebuild switch
Now, let's install the Passbolt package by running the following command:
sudo nix-env -i passbolt
Passbolt requires a database to store its data, and we'll be using MariaDB. Install and configure it by running the following commands:
sudo nix-env -iA nixos.mariadb
sudo systemctl enable mariadb
sudo systemctl start mariadb
sudo mysql_secure_installation
This will install MariaDB, start it, and prompt you to set a root password and secure the installation.
Create a new user and database for Passbolt by running the following commands:
sudo mysql -u root -p
CREATE DATABASE passbolt;
CREATE USER 'passbolt'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON passbolt.* TO 'passbolt'@'localhost';
FLUSH PRIVILEGES;
exit;
Replace yourpassword
with a strong password of your choice.
Now, let's configure Passbolt by editing the passbolt.env
file:
sudo vim /etc/passbolt/passbolt.env
Here, set the following environment variables:
# APP
PASSBOLT_ENVIRONMENT="production"
APP_FULL_BASE_URL="https://your.domain.com/"
FORCE_TLS=false
# DATABASE
DB_HOST="localhost"
DB_PORT="3306"
DB_NAME="passbolt"
DB_USER="passbolt"
DB_PASS="yourpassword"
# GPG
OPENPGP_SERVER_KEYSERVER_POOL="pgp.mit.edu"
GNUPGHOME="/etc/passbolt/gpg"
OPENPGP_SERVER_SKS_POOL_DISABLED="true"
# EMAIL
EMAIL_TRANSPORT_DEFAULT_HOST=""
EMAIL_TRANSPORT_DEFAULT_PORT=""
EMAIL_TRANSPORT_DEFAULT_USERNAME=""
EMAIL_TRANSPORT_DEFAULT_PASSWORD=""
EMAIL_DEFAULT_FROM=""
EMAIL_DEFAULT_PUBLIC_KEY=""
EMAIL_DEFAULT_SIGNED=""
EMAIL_DEFAULT_ENCRYPTION=""
Replace your.domain.com
with your actual domain name.
Finally, start Passbolt by running the following command:
sudo systemctl start passbolt
Passbolt should now be running and accessible at https://your.domain.com
.
Congratulations! You have successfully installed Passbolt 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!
Alternatively, for the best virtual desktop, try Shells!