2023-12-15 17:58:36 +00:00
|
|
|
{ pkgs, lib, ... }:
|
|
|
|
let
|
|
|
|
settings = import ./../settings.nix;
|
|
|
|
in
|
|
|
|
{
|
2023-11-17 17:42:30 +00:00
|
|
|
services.pcscd.enable = true; # enable support for smart cards
|
|
|
|
|
2023-12-15 17:49:12 +00:00
|
|
|
environment.systemPackages = with pkgs; [ pcsclite ]
|
|
|
|
# Yubico authentictor app for managing accounts
|
|
|
|
++ (lib.optionals settings.hardware.yubikey.authenticator [ yubioath-flutter ])
|
|
|
|
# ykman CLI and Qt-GUI
|
|
|
|
++ (lib.optionals settings.hardware.yubikey.ykman [
|
|
|
|
yubikey-manager # CLI tool for ykman
|
|
|
|
yubikey-manager-qt # GUI tool for ykman
|
|
|
|
]);
|
2023-11-17 17:42:30 +00:00
|
|
|
}
|