sisyphus/nixos/modules/hardware/yubikey/default.nix

18 lines
361 B
Nix
Raw Normal View History

2024-03-22 21:16:12 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.hardware.yubikey;
in {
options.sisyphus.hardware.yubikey.enable = lib.mkEnableOption "YubiKey support";
config = lib.mkIf cfg.enable {
# Enable smart card reading
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
pinentryFlavor = "curses";
};
};
}