more stuff moved to options and some more consistency
This commit is contained in:
parent
6d9dbe38cb
commit
4ab970aea9
28 changed files with 394 additions and 298 deletions
|
@ -6,10 +6,11 @@
|
|||
}: let
|
||||
inherit (lib) mkMerge mkIf;
|
||||
inherit (config) conf;
|
||||
cfg = config.conf.yubikey;
|
||||
in
|
||||
mkMerge [
|
||||
(mkIf
|
||||
conf.yubikey.enable
|
||||
cfg.enable
|
||||
{
|
||||
services.udev.packages = [pkgs.yubikey-personalization];
|
||||
services.pcscd.enable = true;
|
||||
|
@ -24,7 +25,7 @@ in
|
|||
];
|
||||
})
|
||||
(mkIf
|
||||
conf.yubikey.login
|
||||
cfg.login
|
||||
{
|
||||
security.pam.u2f = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue