nixos/pam: assert ZFS support for PAM module

This commit is contained in:
Nicola Squartini 2023-04-30 12:07:45 +02:00
parent 5466f76755
commit 87cbaf7ce3

View file

@ -1286,6 +1286,12 @@ in
Only one of users.motd and users.motdFile can be set.
'';
}
{
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`).
'';
}
];
environment.systemPackages =