22 lines
532 B
Nix
22 lines
532 B
Nix
# {
|
|
# config,
|
|
# ...
|
|
# }: let
|
|
# # inherit (config.myOptions.other.system) username;
|
|
# in {
|
|
_: {
|
|
security.pam = {
|
|
services = {
|
|
login.u2fAuth = true;
|
|
sudo.u2fAuth = true;
|
|
};
|
|
};
|
|
|
|
# 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;
|
|
# };
|
|
}
|