systemd/initrd: Add files required by TPM2 and FIDO2 support to the initramfs

Changed files
+8
nixos
modules
system
boot
systemd
+8
nixos/modules/system/boot/systemd/initrd.nix
···
# so NSS can look up usernames
"${pkgs.glibc}/lib/libnss_files.so.2"
] ++ optionals cfg.package.withCryptsetup [
# the unwrapped systemd-cryptsetup executable
"${cfg.package}/lib/systemd/.systemd-cryptsetup-wrapped"
] ++ jobScripts;
···
# so NSS can look up usernames
"${pkgs.glibc}/lib/libnss_files.so.2"
] ++ optionals cfg.package.withCryptsetup [
+
# tpm2 support
+
"${cfg.package}/lib/cryptsetup/libcryptsetup-token-systemd-tpm2.so"
+
pkgs.tpm2-tss
+
+
# fido2 support
+
"${cfg.package}/lib/cryptsetup/libcryptsetup-token-systemd-fido2.so"
+
"${pkgs.libfido2}/lib/libfido2.so.1"
+
# the unwrapped systemd-cryptsetup executable
"${cfg.package}/lib/systemd/.systemd-cryptsetup-wrapped"
] ++ jobScripts;