add yubikey

This commit is contained in:
2026-04-23 15:26:14 -05:00
parent f6011be1d1
commit 1a609d14dc
3 changed files with 32 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
{
pkgs,
config,
lib,
...
}:
let
service = "yubikey";
cfg = config.system.${service};
in {
options.system.${service} = {
enable = lib.mkEnableOption "enables ${service}";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
yubikey-personalization
yubikey-manager
yubikey-piv-tool
];
homebrew = {
casks = [
"yubico-authenticator"
];
};
};
}