mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-04 04:15:52 +02:00
21 lines
426 B
Nix
21 lines
426 B
Nix
{ lib, pkgs, config, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.kevin.yubikey;
|
|
in {
|
|
options.kevin.yubikey = {
|
|
enable = mkEnableOption "yubikey setup";
|
|
};
|
|
|
|
config = mkIf cfg.enable (mkMerge [
|
|
({
|
|
security.pam.yubico = {
|
|
enable = true;
|
|
debug = false;
|
|
mode = "challenge-response";
|
|
};
|
|
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
|
})
|
|
]);
|
|
}
|