nix-configs/schrottserver/vaultwarden.nix

23 lines
621 B
Nix
Raw Normal View History

2023-02-03 22:06:00 +00:00
{ pkgs, ... }:
{
services.vaultwarden = {
enable = true;
#backupDir = "/vw-backups";
config = {
DATA_FOLDER = "/var/lib/bitwarden_rs/";
DATABASE_URL = "/var/lib/bitwarden_rs/db.sqlite3";
LOG_FILE = "/var/log/bitwarden";
WEBSOCKET_ENABLED = true;
WEBSOCKET_ADDRESS = "0.0.0.0";
WEBSOCKET_PORT = 3012;
SIGNUPS_VERIFY = true;
ROCKET_LOG = "debug";
ENABLE_WAL = false;
ADMIN_TOKEN = builtins.readFile ../secret-data/vaultwarden-admin-token;
2023-02-04 00:14:39 +00:00
DOMAIN = "https://vw.schrottkatze.de";
2023-02-03 22:06:00 +00:00
SMTP_TIMEOUT = 15;
ROCKET_PORT = 8812;
};
};
}