diff --git a/roles/yubikey.nix b/roles/yubikey.nix new file mode 100644 index 0000000..bd3afc7 --- /dev/null +++ b/roles/yubikey.nix @@ -0,0 +1,25 @@ +# NixOps configuration for the hosts using Yubikeys + +{ config, pkgs, lib, ... }: + +{ + + services.udev.packages = [ + pkgs.yubikey-personalization # A library and command line tool to personalize YubiKeys + pkgs.libu2f-host # A C library and command-line tool that implements the host-side of the U2F protocol + ]; + + services.pcscd.enable = true; # Enable PCSC-Lite daemon + + # Additional packages used with the Yubikey + environment = { + systemPackages = with pkgs; [ + yubikey-manager # CLI tool for configuring any YubiKey over USB + yubikey-manager-qt # Configure any YubiKey over USB interfaces + yubikey-personalization # Lib & CLI tool to personalize YubiKeys + yubikey-personalization-gui # QT based utility to facilitate Yubikey reconfiguration + yubioath-desktop # Yubikey Desktop Authenticator + ]; + }; + +}