mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
14 lines
354 B
Nix
14 lines
354 B
Nix
{ lib, nix-secrets, ... }:
|
|
let
|
|
secretsDirectory = builtins.toString nix-secrets;
|
|
yubikey1 = lib.swarselsystems.getSecret "${secretsDirectory}/yubikey/yubikey1";
|
|
yubikey2 = lib.swarselsystems.getSecret "${secretsDirectory}/yubikey/yubikey2";
|
|
in
|
|
{
|
|
pam.yubico.authorizedYubiKeys = {
|
|
ids = [
|
|
"${yubikey1}"
|
|
"${yubikey2}"
|
|
];
|
|
};
|
|
}
|