Skip to content

Commit

Permalink
fix: Patch sshd PAM policy to relax login restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
lpchaim committed Oct 8, 2024
1 parent 55843a4 commit c1b186c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/nixos/security/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ lib.lpchaim.mkModule {
config.security.pam.services.${svc}.text;
in {
"pam.d/login".text = lib.mkIf cfg.u2f.relaxed (lib.mkForce (patch "login"));
"pam.d/sshd".text = lib.mkForce (patch "sshd");
"pam.d/sudo".text = lib.mkForce (patch "sudo");
};
security.pam = {
Expand Down

0 comments on commit c1b186c

Please sign in to comment.