mio-ops/roles/yubikey.nix

26 lines
911 B
Nix

# 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
];
};
}