common: move to modules, move some files out, modules: adjust dir structure
This commit is contained in:
parent
ed5f8c3ae6
commit
0bc9abc4c0
43 changed files with 86 additions and 83 deletions
9
modules/nixos/system/yubikey.nix
Executable file
9
modules/nixos/system/yubikey.nix
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
# enable yubikey u2f for use with pam
|
||||
security.pam.services = {
|
||||
sudo.u2fAuth = true;
|
||||
polkit-1.u2fAuth = if config.services.desktopManager.plasma6.enable then true else false;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue