8 lines
235 B
Nix
8 lines
235 B
Nix
|
# Utility for invoking slappasswd with the correct options for
|
||
|
# creating an ARGON2 password hash.
|
||
|
{ pkgs, ... }:
|
||
|
|
||
|
pkgs.writeShellScriptBin "hash-password" ''
|
||
|
${pkgs.openldap}/bin/slappasswd -o module-load=pw-argon2 -h '{ARGON2}'
|
||
|
''
|