From 3f446bfbd356a58ce673d88b6e78f368f707c9f1 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 15 May 2023 12:06:04 +0200 Subject: nixos/pam: fix ZFS support assertion It was always complaining even if you didn't enable PAM ZFS. --- nixos/modules/security/pam.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/security/pam.nix b/nixos/modules/security/pam.nix index 41994aa524229..eac67cfdec5a6 100644 --- a/nixos/modules/security/pam.nix +++ b/nixos/modules/security/pam.nix @@ -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`). ''; -- cgit 1.4.1