nixos/modules/security/pam.nix doesn't support specifying order of pam modules.
Steps To Reproduce
N/A
Expected behavior
We can specify a partial order to pam modules and toposort them.
Screenshots
N/A
Additional context
Sometimes I need to specify the order of pam modules. For example, I want u2f to have higher priority than sshAgentAuth. Otherwise I'll be locked out when unlocking screen with yubikey since sshAgentAuth needs me to input pin. Now I have to patch nixos/modules/security/pam.nix to adjust the order.
Describe the bug
nixos/modules/security/pam.nix doesn't support specifying order of pam modules.
Steps To Reproduce
N/A
Expected behavior
We can specify a partial order to pam modules and toposort them.
Screenshots
N/A
Additional context
Sometimes I need to specify the order of pam modules. For example, I want u2f to have higher priority than sshAgentAuth. Otherwise I'll be locked out when unlocking screen with yubikey since sshAgentAuth needs me to input pin. Now I have to patch nixos/modules/security/pam.nix to adjust the order.
Notify maintainers
@stigtsp @Lassulus
Metadata
N/A