1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 04:09:47 +01:00
home-manager/tests/modules/misc/pam/yubico-with-ids.nix

16 lines
387 B
Nix
Raw Normal View History

{
config = {
pam.yubico.authorizedYubiKeys.ids = [ "abcdefghijkl" "012345678912" ];
nmt.script = ''
assertFileExists home-files/.yubico/authorized_yubikeys
assertFileContent \
home-files/.yubico/authorized_yubikeys \
${
builtins.toFile "yubico-with-ids-expected.txt"
"hm-user:abcdefghijkl:012345678912"
}
'';
};
}