Initial commit

This commit is contained in:
Kevin Kandlbinder 2022-12-19 16:36:43 +01:00
commit a46d297fc7
8 changed files with 356 additions and 0 deletions

21
nixos/modules/yubikey.nix Normal file
View file

@ -0,0 +1,21 @@
{ 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 ];
})
]);
}