This commit is contained in:
Bryan Ramos 2024-02-28 21:53:36 -05:00
parent 31fb8f6a87
commit 7d54484c89
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
6 changed files with 44 additions and 7 deletions

View file

@ -38,7 +38,29 @@ in
testnet = false;
user = "bitcoind";
group = "bitcoin";
#extraConfig = TODO;
configFile = /var/lib/bitcoind/bitcoin.conf;
rpc = {
"btcd" = {
#passwordHMAC = #CHECK IF THIS IS SAFE TO EXPOSE!!;
};
port = 8332;
};
extraConfig = ''
server=1
mempoolfullrbf=1
v2transport=1
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
proxy=127.0.0.1:9050
listen=1
listenonion=1
torcontrol=127.0.0.1:9051
torenablecircuit=1
'';
};
};
};

View file

@ -47,7 +47,7 @@ in
PrivateTmp = true;
ProtectSystem = "full";
NoNetPrivileges = true;
NoNewPrivileges = true;
PrivateDevies = true;
};
Install = {

View file

@ -0,0 +1,5 @@
{
imports = [
./c-lightning-REST
];
}

View file

@ -21,14 +21,25 @@ in
systemd.services.electrs = {
Unit = {
after = [ "network.target" "bitcoind.service" ];
wantedBy = [ "multi-user.target" ];
Description = "Electrs Bitcoin Indexer";
After = [ "network.target" "bitcoind.service" ];
Requires = [ "bitcoind.service" ];
};
Service = {
ExecStart = "${pkgs.electrs}/bin/electrs --conf=...";
Restart = "always";
ExecStartPre = "/usr/bin/sleep 10";
ExecStart = "${pkgs.electrs}/bin/electrs";
User = "electrs";
Group = "bitcoin";
Type = "simple";
KillMode = "process";
TimeoutSec = "60";
Restart = "always";
RestartSec = "60";
};
Install = {
WantedBy = [ "multi-user.target" ];
};
};
};

View file

@ -1,6 +1,5 @@
{
imports = [
./bitcoin
./security
];
}