I3lock not configured correctly maybe due to bad PAM configurtion in default NixOS?

It seems to be related to a recent change on PAM handling. Which version of Nixpkgs are you following?