How to Fix PAM Issues With Home Manager on Non-NixOS Setups

[!WARNING] The pam_shim is POC code, so be careful with using it on your own machine. Use it at your own risk. The problem At work I have to use Ubuntu but I want to share my nix config between all my devices i.e. desktop and work laptop. On my home setup I have been using Niri with Noctalia shell (quickshell) on NixOS. Everything works fine I can use the Noctalia shell lock screen and can authenticate fine. ...