From a05551fd1c5af487d0562225b6e4da1903228fbb Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 7 Apr 2020 23:05:03 +0200 Subject: [PATCH] improve config file formatting --- modules/bitcoind.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index cadf041..357f975 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -14,7 +14,6 @@ let ${optionalString (cfg.disablewallet != null) "disablewallet=${if cfg.disablewallet then "1" else "0"}"} ${optionalString (cfg.assumevalid != null) "assumevalid=${cfg.assumevalid}"} - # Connection options ${optionalString (cfg.port != null) "port=${toString cfg.port}"} ${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"} @@ -22,7 +21,6 @@ let ${optionalString (cfg.discover != null) "discover=${if cfg.discover then "1" else "0"}"} ${lib.concatMapStrings (node: "addnode=${node}\n") cfg.addnodes} - # RPC server options rpcport=${toString cfg.rpc.port} ${concatMapStringsSep "\n" @@ -39,7 +37,7 @@ let ${optionalString (cfg.zmqpubrawblock != null) "zmqpubrawblock=${cfg.zmqpubrawblock}"} ${optionalString (cfg.zmqpubrawtx != null) "zmqpubrawtx=${cfg.zmqpubrawtx}"} - # Extra config options (from bitcoind nixos service) + # Extra options ${cfg.extraConfig} ''; in {