diff --git a/configuration/default.nix b/configuration/default.nix index 924474a..f2d1615 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -117,11 +117,11 @@ sudo.execWheelOnly = true; pam = { - sshAgentAuth = { + rssh = { enable = true; - authorizedKeysFiles = [ "/etc/ssh/authorized_keys.d/%u" ]; + settings.auth_key_file = "/etc/ssh/authorized_keys.d/$ruser"; }; - services.sudo.sshAgentAuth = true; + services.sudo.rssh = true; }; };