From 1c25738f4bc04dd828997711dc671f2cbb445bf1 Mon Sep 17 00:00:00 2001 From: Atharva Date: Thu, 11 Aug 2022 23:27:18 +0530 Subject: [PATCH] Create /var/lib/minimint --- modules/minimint.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/minimint.nix b/modules/minimint.nix index daa688eee..e7930f4ab 100644 --- a/modules/minimint.nix +++ b/modules/minimint.nix @@ -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