2019-11-27 05:04:31 -08:00
|
|
|
{ pkgs }: with pkgs;
|
|
|
|
|
2020-06-22 05:10:54 -07:00
|
|
|
let
|
|
|
|
rpcauth = pkgs.writeScriptBin "rpcauth" (builtins.readFile ./rpcauth/rpcauth.py);
|
|
|
|
in
|
2019-11-27 05:04:31 -08:00
|
|
|
writeScript "generate-secrets" ''
|
2020-06-22 05:10:54 -07:00
|
|
|
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth python35 ]}
|
2019-11-27 05:04:31 -08:00
|
|
|
. ${./generate-secrets.sh} ${./openssl.cnf}
|
|
|
|
''
|