Yubikey enable

This commit is contained in:
foglar 2024-12-18 17:35:00 +01:00
parent 68baae3092
commit 71b6966f2b
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{
lib,
config,
pkgs,
...
}: {
options = {
program.yubikey = {
enable = lib.mkEnableOption "Enable YubiKey support";
};
};
config = lib.mkIf config.program.yubikey.enable {
environment.systemPackages = with pkgs; [
yubioath-flutter
yubikey-manager
pam_u2f
];
services.pcscd = {
enable = true;
};
#services.udev.packages = [pkgs.yubikey-personalization];
#
#services.yubikey-agent.enable = true;
#
#security.pam = {
# sshAgentAuth.enable = true;
# u2f = {
# enable = true;
# settings = {
# cue = false;
# authfile = "${config.home.homeDirectory}/.config/yubikeys/u2f_keys";
# # debug = true;
# };
# };
# services = {
# login.u2fAuth = true;
# sudo = {
# u2fAuth = true;
# sshAgentAuth = true;
# };
# };
#};
};
}

View File

@ -74,6 +74,7 @@
tor.enable = true;
virt-manager.enable = true;
virtualbox.enable = false;
yubikey.enable = true;
};
# Basic programs to enable