Initial commit of Yubikey configuration

This commit is contained in:
Serĉanto de Scio 2020-01-14 16:20:02 +10:00
parent e616d1de41
commit ccedc38261
Signed by: sercanto
GPG key ID: A4122FF3971B6865

25
roles/yubikey.nix Normal file
View file

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