feat: add yubikey ids

This commit is contained in:
Leon Schwarzäugl 2025-03-22 23:40:18 +01:00
parent d7a7571b00
commit 01efa60483
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
5 changed files with 40 additions and 3 deletions

View file

@ -0,0 +1,14 @@
{ 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}"
];
};
}