mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added groups and conf file
This commit is contained in:
parent
c647e3d901
commit
6055d81a89
2 changed files with 31 additions and 8 deletions
22
src/system/modules/bitcoin/config/default.nix
Normal file
22
src/system/modules/bitcoin/config/default.nix
Normal 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
|
||||||
|
''
|
||||||
|
|
@ -6,7 +6,7 @@ let
|
||||||
version = "27.0";
|
version = "27.0";
|
||||||
|
|
||||||
home = "/var/lib/bitcoind";
|
home = "/var/lib/bitcoind";
|
||||||
#conf = pkgs.writeText "bitcoin.conf" (import ./config);
|
conf = pkgs.writeText "bitcoin.conf" (import ./config);
|
||||||
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
@ -37,12 +37,13 @@ in
|
||||||
createHome = true;
|
createHome = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
#groups = {
|
groups = {
|
||||||
# "bitcoin" = {
|
"bitcoin" = {
|
||||||
# members = [
|
members = [
|
||||||
# ];
|
"bitcoind"
|
||||||
# };
|
];
|
||||||
#};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 8333 ];
|
networking.firewall.allowedTCPPorts = [ 8333 ];
|
||||||
|
|
@ -52,7 +53,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "bitcoind";
|
user = "bitcoind";
|
||||||
group = "bitcoin";
|
group = "bitcoin";
|
||||||
#configFile = conf;
|
configFile = conf;
|
||||||
|
|
||||||
rpc = {
|
rpc = {
|
||||||
port = 8332;
|
port = 8332;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue