vaultwarden

This commit is contained in:
death916 2025-08-07 23:39:43 -07:00
parent a64a07ccf6
commit 27018ec5a3

View file

@ -40,6 +40,31 @@
flake = "/home/death916/nixconfig/";
};
services.vaultwarden = {
enable = true;
backupDir = "/var/lib/vaultwarden/backup";
config = {
# Refer to https://github.com/dani-garcia/vaultwarden/blob/main/.env.template
DOMAIN = "https://vaultwarden.death916.xyz";
SIGNUPS_ALLOWED = true;
ROCKET_ADDRESS = "100.72.187.12";
ROCKET_PORT = 8222;
ROCKET_LOG = "critical";
environmentFile = "/var/lib/vaultwarden/vault.env"
# This example assumes a mailserver running on localhost,
# thus without transport encryption.
# If you use an external mail server, follow:
# https://github.com/dani-garcia/vaultwarden/wiki/SMTP-configuration
# SMTP_HOST = "127.0.0.1";
# SMTP_PORT = 25;
# SMTP_SSL = false;
# SMTP_FROM = "admin@bitwarden.example.com";
# SMTP_FROM_NAME = "example.com Bitwarden server";
};
};
environment.systemPackages = with pkgs; [
git
vim