nixos/modules/hardware/yubikey/default.nix

26 lines
396 B
Nix
Raw Normal View History

2024-07-28 21:08:02 +02:00
{
config,
lib,
pkgs,
...
}:
2023-04-02 16:37:30 +02:00
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;
2023-04-02 16:37:30 +02:00
ssh.startAgent = false;
gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
};
}