nixos/modules/hardware/yubikey/default.nix
2025-12-10 23:47:28 +01:00

25 lines
396 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.yubikey;
in
{
options.my.hardware.yubikey = {
enable = lib.mkEnableOption "yubikey configuration";
};
config = lib.mkIf cfg.enable {
programs = {
yubikey-manager.enable = true;
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
};
}