yubikey: remove unnecessary conditional and add u2f settings
This commit is contained in:
parent
89ac1c676d
commit
4d97821492
1 changed files with 10 additions and 3 deletions
|
|
@ -2,8 +2,15 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
# enable yubikey u2f for use with pam
|
# enable yubikey u2f for use with pam
|
||||||
security.pam.services = {
|
security.pam = {
|
||||||
sudo.u2fAuth = true;
|
services = {
|
||||||
polkit-1.u2fAuth = if config.services.desktopManager.plasma6.enable then true else false;
|
sudo.u2fAuth = true;
|
||||||
|
polkit-1.u2fAuth = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
u2f.settings = {
|
||||||
|
authfile = "/etc/Yubico/u2f_keys";
|
||||||
|
cue = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue