From fcddd3ba06088e235243d41395e40fd9e0107a76 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 1 Oct 2024 06:02:50 -0700 Subject: modules: move shared pc modules from desktop to pc --- modules/pc/hardware/yubikey.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/pc/hardware/yubikey.nix (limited to 'modules/pc/hardware/yubikey.nix') diff --git a/modules/pc/hardware/yubikey.nix b/modules/pc/hardware/yubikey.nix new file mode 100644 index 0000000..6bd4a5c --- /dev/null +++ b/modules/pc/hardware/yubikey.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + hardware.gpgSmartcards.enable = true; + + services = { + pcscd.enable = true; + udev.packages = [ pkgs.yubikey-personalization ]; + }; + + environment.systemPackages = with pkgs; [ + yubikey-manager + yubikey-manager-qt + yubikey-personalization + yubikey-personalization-gui + yubico-piv-tool + yubioath-flutter + ]; +} -- cgit v1.2.3