niksos/hosts/common/optional/yubikey.nix

28 lines
615 B
Nix
Raw Normal View History

{
# config,
pkgs,
...
}: {
# }: let
2024-07-15 23:18:25 +02:00
# # inherit (config.poz.other.system) username;
# in {
2024-06-09 15:57:20 +02:00
security.pam = {
services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
};
};
services.udev = {
packages = [ pkgs.yubikey-personalization ];
};
# age.secrets.yubikey-u2f-keys.file = ../../secrets/yubikey-u2f-keys.age;
# environment.etc."Yubico/u2f_keys".source = config.age.secrets.yubikey-u2f-keys.path;
# home-manager.users.${username} = {
# xdg.configFile."Yubico/u2f_keys".source = /etc/Yubico/u2f_keys;
# };
2024-06-09 15:57:20 +02:00
}