boot.zfs.requestEncryptionCredentials

NixOS option

If true on import encryption keys or passwords for all encrypted datasets are requested. To only decrypt selected datasets supply a list of dataset names instead. For root pools the encryption key can be supplied via both an interactive prompt (keylocation=prompt) and from a file (keylocation=file://).

type: boolean or list of string
Default
true
Example
[
  "tank"
  "data"
]
declared in: nixos/modules/tasks/filesystems/zfs.nixView source on NixOS/nixpkgs →