add u2f support
This commit is contained in:
parent
e15777ab93
commit
f5770f524f
|
@ -18,15 +18,17 @@
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.services = {
|
security.pam = {
|
||||||
|
services = {
|
||||||
login.u2fAuth = true;
|
login.u2fAuth = true;
|
||||||
sudo.u2fAuth = true;
|
sudo.u2fAuth = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.pam.yubico = {
|
u2f = {
|
||||||
enable = true;
|
enable = true;
|
||||||
debug = false;
|
debug = false;
|
||||||
mode = "challenge-response";
|
cue = true;
|
||||||
id = ["27677315"];
|
control = "sufficient";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue