mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
cont
This commit is contained in:
parent
31fb8f6a87
commit
7d54484c89
6 changed files with 44 additions and 7 deletions
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ in
|
|||
|
||||
PrivateTmp = true;
|
||||
ProtectSystem = "full";
|
||||
NoNetPrivileges = true;
|
||||
NoNewPrivileges = true;
|
||||
PrivateDevies = true;
|
||||
};
|
||||
Install = {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./c-lightning-REST
|
||||
];
|
||||
}
|
||||
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./bitcoin
|
||||
./security
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue