Skip to content

Commit

Permalink
fix: Disable u2fAuth altogether for sshd service
Browse files Browse the repository at this point in the history
  • Loading branch information
lpchaim committed Oct 9, 2024
1 parent c1b186c commit f1337f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nixos/security/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ 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 = {
services = {
login.u2fAuth = true;
sshd.u2fAuth = false;
sudo.u2fAuth = true;
};
sshAgentAuth.enable = true;
Expand Down

0 comments on commit f1337f3

Please sign in to comment.