Skip to content

fix(nix): patch U2F PAM config with full Nix store path#2071

Draft
xPathin wants to merge 1 commit intoAvengeMedia:masterfrom
xPathin:fix/nixos-u2f-pam-path
Draft

fix(nix): patch U2F PAM config with full Nix store path#2071
xPathin wants to merge 1 commit intoAvengeMedia:masterfrom
xPathin:fix/nixos-u2f-pam-path

Conversation

@xPathin
Copy link
Contributor

@xPathin xPathin commented Mar 24, 2026

Summary

The Nix flake build patches assets/pam/fprint with the full Nix store path to pam_fprintd.so, but the same patch is missing for assets/pam/u2f. This causes pam_u2f.so to fail with "Module is unknown" on NixOS because PAM can't resolve the short module name.

This adds the matching substituteInPlace for the U2F PAM config.

Related: #1910, #1911, #2050,

Test plan

  • NixOS user with a FIDO2/U2F security key: rebuild with this branch and test lock screen U2F

cc @HirschBerge or any other Nix user can any of you test and quickly confirm that this fixes everything? Point your flake input to github:xPathin/DankMaterialShell/fix/nixos-u2f-pam-path and update + rebuild?

Copy link
Collaborator

@LuckShiba LuckShiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at least the code seems fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants