mirror of
https://github.com/nix-community/home-manager
synced 2024-11-17 00:29:45 +01:00
16 lines
387 B
Nix
16 lines
387 B
Nix
|
{
|
||
|
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"
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
}
|