diff options
author | Nicola Squartini <tensor5@gmail.com> | 2023-04-30 12:07:45 +0200 |
---|---|---|
committer | Nicola Squartini <tensor5@gmail.com> | 2023-05-15 09:22:42 +0200 |
commit | 87cbaf7ce339136ccbd639b7b5a1cf988d0fa440 (patch) | |
tree | b70dd8bab2a0df3272a953908fe45670a8250d1f | |
parent | 5466f767556b12a6db4bcaa6e9ab9970d28b0d29 (diff) | |
download | nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.tar nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.tar.gz nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.tar.bz2 nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.tar.lz nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.tar.xz nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.tar.zst nixlib-87cbaf7ce339136ccbd639b7b5a1cf988d0fa440.zip |
nixos/pam: assert ZFS support for PAM module
-rw-r--r-- | nixos/modules/security/pam.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/security/pam.nix b/nixos/modules/security/pam.nix index 55137df7afe4..41994aa52422 100644 --- a/nixos/modules/security/pam.nix +++ b/nixos/modules/security/pam.nix @@ -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 = |