See Don't stop user from installing the nix store on an unencrypted volume by mpscholten · Pull Request #3692 · NixOS/nix · GitHub