mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added server configs
This commit is contained in:
parent
34ce975a09
commit
10e8a34586
4 changed files with 152 additions and 2 deletions
|
|
@ -3,6 +3,7 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.system.bitcoin;
|
||||
nginx = config.modules.system.nginx;
|
||||
|
||||
home = "/var/lib/bitcoind";
|
||||
|
||||
|
|
@ -35,6 +36,11 @@ in
|
|||
group = "bitcoin";
|
||||
createHome = true;
|
||||
};
|
||||
"nginx" = {
|
||||
extraGroups = mkIf nginx.enable [
|
||||
"bitcoin"
|
||||
];
|
||||
};
|
||||
};
|
||||
groups = {
|
||||
"bitcoin" = {
|
||||
|
|
@ -49,8 +55,6 @@ in
|
|||
btc = "bitcoind";
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8333 ];
|
||||
|
||||
services.bitcoind = {
|
||||
"btc" = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue