mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -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;
|
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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ in
|
||||||
|
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
ProtectSystem = "full";
|
ProtectSystem = "full";
|
||||||
NoNetPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
PrivateDevies = true;
|
PrivateDevies = true;
|
||||||
};
|
};
|
||||||
Install = {
|
Install = {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./c-lightning-REST
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./bitcoin
|
./bitcoin
|
||||||
./security
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue