added groups and conf file

This commit is contained in:
Bryan Ramos 2024-05-13 16:36:46 -04:00
parent c647e3d901
commit 6055d81a89
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
2 changed files with 31 additions and 8 deletions

View file

@ -0,0 +1,22 @@
''
server=1
daemon=1
mempoolfullrbf=1
v2transport=1
rpcauth=
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
dnsseed=0
bind=127.0.0.1
proxy=127.0.0.1:9050
listen=1
listenonion=1
torcontrol=127.0.0.1:9051
torenablecircuit=1
''

View file

@ -6,7 +6,7 @@ let
version = "27.0";
home = "/var/lib/bitcoind";
#conf = pkgs.writeText "bitcoin.conf" (import ./config);
conf = pkgs.writeText "bitcoin.conf" (import ./config);
in
@ -37,12 +37,13 @@ in
createHome = true;
};
};
#groups = {
# "bitcoin" = {
# members = [
# ];
# };
#};
groups = {
"bitcoin" = {
members = [
"bitcoind"
];
};
};
};
networking.firewall.allowedTCPPorts = [ 8333 ];
@ -52,7 +53,7 @@ in
enable = true;
user = "bitcoind";
group = "bitcoin";
#configFile = conf;
configFile = conf;
rpc = {
port = 8332;