1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-10 14:50:40 +02:00

fix: regenerate password hashes correctly

This commit is contained in:
oddlama 2024-08-01 01:36:14 +02:00
parent 58afd52f99
commit 95818b6fcf
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
28 changed files with 54 additions and 35 deletions

View file

@ -54,7 +54,8 @@
echo " -> Deriving argon2id hash from "${lib.escapeShellArg dep.host}":"${lib.escapeShellArg dep.name}"" >&2
${decrypt} ${lib.escapeShellArg dep.file} \
| tr -d '\n' \
| ${pkgs.libargon2}/bin/argon2 "$(${pkgs.openssl}/bin/openssl rand -base64 16)" -id \
| ${pkgs.libargon2}/bin/argon2 "$(${pkgs.openssl}/bin/openssl rand -base64 16)" -id -e \
| tr -d '\n' \
|| die "Failure while generating argon2id hash"
'';