1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 19:49:45 +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"
}
'';
};
}