Files
nixpkgs/nixos/modules/programs/yubikey-manager.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
601 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.yubikey-manager;
in
{
options = {
programs.yubikey-manager = {
enable = lib.mkEnableOption "yubikey-manager";
package = lib.mkPackageOption pkgs "yubikey-manager" { };
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];
services = {
pcscd.enable = true;
# The udev rules we want aren't included in the yubikey-manager package, but
# we can get them from yubikey-personalization.
udev.packages = [ pkgs.yubikey-personalization ];
};
};
}