services.mongodb.initialRootPasswordFile
NixOS option
Path to the file containing the password for the root user if auth is enabled.
type: null or absolute pathDefault
declared in: nixos/modules/services/databases/mongodb.nixView source on NixOS/nixpkgs →null