I3lock not working on nix only (ubuntu actually, not nixos)

I am trying to setup betterlockscreen on my Ubuntu 22.10 running nix (so a standalone nix install, outside of nixos).

However, I cannot find how to make it work. When typing my password, even very carefully, it does not unlock.
Reading a bit what’s behind, I found that betterlockscreen is using i3lock-color, itself being a fork of i3lock.
I tested both tools in a nix shell and the same issue happens with both.
It does not happen when running the stock i3lock installed with apt-get.

After some reading, I found that other topic, reporting issues with PAM.
I can confirm that my channels are up-to-date with 22.11.
I also inspected an exection of i3lock-color using strace and the program is correctly looking at the file /etc/pam.d/i3lock, as the stock i3lock is.

Being out of ideas on how to continue, I turn to you community, in case someone already solved that issue.
Many thanks

Hey @kineolyan I have the same problem, I manually placed /etc/pam.d/i3lock file with the contents from their repo, but to no avail :slightly_frowning_face: