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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue