blob: 3f38beabf474bd53bb04e19df6511d8aebbc5b0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
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 ];
};
};
}
|