Merge pull request #232015 from NixOS/fix-zfs-unlock

nixos/pam: fix ZFS support assertion
This commit is contained in:
Ryan Lahfa 2023-05-15 13:27:52 +02:00 committed by GitHub
commit 6d6c7c5993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1287,7 +1287,7 @@ in
'';
}
{
assertion = config.security.pam.zfs.enable && (config.boot.zfs.enabled || config.boot.zfs.enableUnstable);
assertion = config.security.pam.zfs.enable -> (config.boot.zfs.enabled || config.boot.zfs.enableUnstable);
message = ''
`security.pam.zfs.enable` requires enabling ZFS (`boot.zfs.enabled` or `boot.zfs.enableUnstable`).
'';