blob: 7466737cabae666c2ca4d5bcbfe787d1b9842b41 [file] [log] [blame]
{ flakeRoot, ... }: {
security.pam.services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
};
security.pam.u2f.authFile = "${flakeRoot}/keys/u2f_mappings";
security.sudo.extraRules = [
{
users = [ "minion" ];
commands = [{ command = "ALL"; options = [ "NOPASSWD" ]; }];
}
];
}