minor modifications to containers

This commit is contained in:
Sam 2024-10-10 01:37:37 +01:00
parent 3092630c08
commit 37768683d7
2 changed files with 3 additions and 2 deletions

View File

@ -52,7 +52,7 @@ in {
firewall = {
enable = true;
allowedTCPPorts = [
5432
8096
];
};
useHostResolvConf = lib.mkForce false;

View File

@ -12,6 +12,7 @@
bitcoin-HMAC-public = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."software/bitcoind/bitcoin-HMAC-public".path;
containerName = "bitcoin-node";
containerIp = configVars.networking.addresses.bitcoin-node.ip;
mempoolPort = configVars.networking.addresses.bitcoin-node.services.mempool.port;
gatewayIp = configVars.networking.addresses.gateway.ip;
allowip = configVars.networking.addresses.bitcoin-node.services.bitcoind.allowip;
pubKeys = lib.filesystem.listFilesRecursive ../../users/keys;
@ -146,7 +147,7 @@ in {
enable = true;
electrumServer = "electrs";
frontend = {
port = 4080;
port = mempoolPort;
address = "0.0.0.0";
};
};