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; testnet = false;
user = "bitcoind"; user = "bitcoind";
group = "bitcoin"; 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; PrivateTmp = true;
ProtectSystem = "full"; ProtectSystem = "full";
NoNetPrivileges = true; NoNewPrivileges = true;
PrivateDevies = true; PrivateDevies = true;
}; };
Install = { Install = {

View file

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

View file

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

View file

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