services.vaultwarden.environmentFile

NixOS option

Additional environment file or files as defined in systemd.exec(5). Secrets like ADMIN_TOKEN and SMTP_PASSWORD should be passed to the service without adding them to the world-readable Nix store. Note that this file needs to be available on the host on which vaultwarden is running. As a concrete example, to make the Admin UI available (from which new users can be invited initially), the secret ADMIN_TOKEN needs to be defined as described here: # Admin secret token, see # https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page ADMIN_TOKEN=...copy-paste a unique generated secret token here...

type: (list of absolute path) or absolute path convertible to it
Default
[ ]
Example
"/var/lib/vaultwarden.env"
declared in: nixos/modules/services/security/vaultwarden/default.nixView source on NixOS/nixpkgs →