Skip to content

Commit

Permalink
Create /var/lib/minimint
Browse files Browse the repository at this point in the history
  • Loading branch information
wiredhikari committed Aug 11, 2022
1 parent 986e8c8 commit 1c25738
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/minimint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ in {
txindex = true;
regtest = true;
};
systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' 0770 ${cfg.user} ${cfg.group} - -"
];
systemd.services.minimint = {
wantedBy = [ "multi-user.target" ];
requires = [ "bitcoind.service" ];
after = [ "bitcoind.service" ];
preStart = ''
mkdir -p ${cfg.dataDir}
${config.nix-bitcoin.pkgs.minimint}/bin/configgen ${cfg.dataDir} 1 4000 5000 1 10 100 1000 10000 100000 1000000
sed -i -e "s/127.0.0.1:18443/${bitcoindRpcAddress}:${toString bitcoind.rpc.port}/g" ${cfg.dataDir}/server-0.json
sed -i -e 's/user": "bitcoin"/user": "${bitcoind.rpc.users.public.name}"/g' ${cfg.dataDir}/server-0.json
Expand Down

0 comments on commit 1c25738

Please sign in to comment.