nixos/pam: fix ZFS support assertion

It was always complaining even if you didn't enable PAM ZFS.
This commit is contained in:
Raito Bezarius 2023-05-15 12:06:04 +02:00
parent cff89b3bff
commit 3f446bfbd3

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`).
'';