mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
16 lines
374 B
Nix
16 lines
374 B
Nix
{ lib, config, pkgs, ... }:
|
|
{
|
|
options.swarselsystems.modules.yubikey = lib.mkEnableOption "yubikey config";
|
|
config = lib.mkIf config.swarselsystems.modules.yubikey {
|
|
programs.ssh.startAgent = false;
|
|
|
|
services.pcscd.enable = false;
|
|
|
|
hardware.gpgSmartcards.enable = true;
|
|
|
|
services.udev.packages = with pkgs; [
|
|
yubikey-personalization
|
|
];
|
|
|
|
};
|
|
}
|