Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/pam: add defaults option #49506
Changing all PAM configuration files derived from the default in pam.nix was impossible from outside the module.
Motivation for this change
Looking for a way to achieve the effect of #30333 for my system, it turned out there is no way to enumerate all PAM services without depending on config (and thus causing infinite recursion), making it impossible to append all their configuration files with desired changes.
Man, this PAM config sure is a mess..
I'm pretty sure this option here isn't strictly needed actually, the module system itself should allow you to set
Trying to replicate it in each pam module doesn't look like it be possible without evaluating the config in a separate instance.