added server configs

This commit is contained in:
Bryan Ramos 2025-01-11 05:52:22 -05:00
parent 34ce975a09
commit 10e8a34586
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
4 changed files with 152 additions and 2 deletions

View file

@ -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;