NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18k stars 14.01k forks source link

Allow to specify order of pam modules #198379

Closed wrvsrx closed 11 months ago

wrvsrx commented 1 year ago

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

wrvsrx commented 11 months ago

It seems that specify order for pam has been supported by @Majiir. Thanks!