fedimint / fedimint

Federated E-Cash Mint
https://fedimint.org/
MIT License
536 stars 209 forks source link

chore(nix-module): improvements #5188

Closed dpc closed 2 weeks ago

dpc commented 2 weeks ago

Corresponding configuration.nix change (when using nix-bitcoin):

+  users.extraUsers.fedimintd-somefed.extraGroups = [ "bitcoinrpc-public" ];

   services.fedimintd."somefed" = {
     enable = true;
     package = pkgs.fedimintd;
+    extraEnvironment = {
+      "RUST_LOG" = "info";
+      "RUST_BACKTRACE" = "1";
+    };
     api = {
       address = "wss://${fmApiFqdn}/ws/";
       bind = "127.0.0.1";
@@ -133,7 +126,8 @@ in
     bitcoin = {
       network = "bitcoin";
       rpc = {
-        address = "http://bitcoin:${btcPass}@127.0.0.1:8332";
+        address = "http://bitcoin@127.0.0.1:8332";
+        secretFile = "/etc/nix-bitcoin-secrets/bitcoin-rpcpassword-public";
       };
     };
   };
elsirion commented 2 weeks ago

Although, since this is to be backported I'd like to avoid churn. @dpc do you want to change anything?

dpc commented 2 weeks ago

I hope no changes will be needed (some changes probably will needed anyway :D).

fedimint-backports commented 2 weeks ago

Successfully created backport PR for releases/v0.3: