anchor.diff:          enable = true;
           lndTlsPath = "/var/lib/lnd/tls.cert";
           lndMacaroonDir = "/var/lib/lnd";
  -      };
  -      metricProvider = {
  -        systemd.services.prometheus-lnd-exporter.serviceConfig.DynamicUser = false;
  -        services.bitcoind.main.enable = true;
  -        services.bitcoind.main.extraConfig = ''
  -          rpcauth=bitcoinrpc:e8fe33f797e698ac258c16c8d7aadfbe$872bdb8f4d787367c26bcfd75e6c23c4f19d44a69f5d1ad329e5adf3f82710f7
  -          bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
  -          bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
  -        '';
  +        extraFlags = [ "--lnd.network=regtest" ];
  +      };
  +      metricProvider = {
  +        virtualisation.memorySize = 1024;
  +        systemd.services.prometheus-lnd-exporter.serviceConfig.RestartSec = 15;
  +        systemd.services.prometheus-lnd-exporter.after = [ "lnd.service" ];
  +        services.bitcoind.regtest = {
  +          enable = true;
  +          extraConfig = ''
  +            rpcauth=bitcoinrpc:e8fe33f797e698ac258c16c8d7aadfbe$872bdb8f4d787367c26bcfd75e6c23c4f19d44a69f5d1ad329e5adf3f82710f7
  +            zmqpubrawblock=tcp://127.0.0.1:28332
  +            zmqpubrawtx=tcp://127.0.0.1:28333
  +          '';
  +          extraCmdlineOptions = [ "-regtest" ];
  +        };
           systemd.services.lnd = {
             serviceConfig.ExecStart = ''
               ${pkgs.lnd}/bin/lnd \
  
positive.code:           wantedBy = [ "multi-user.target" ];
            after = [ "network.target" ];
          };
        };
        exporterTest = ''
          wait_for_unit("lnd.service")
          wait_for_open_port(10009)
          wait_for_unit("prometheus-lnd-exporter.service")
          wait_for_open_port(9092)
          succeed("curl -sSf localhost:9092/metrics | grep '^promhttp_metric_handler'")
        '';
      };
  
  
negative.code:               --tlskeypath=/var/lib/lnd/tls.key \
                --logdir=/var/log/lnd \
                --bitcoin.active \
                --bitcoin.regtest \
                --bitcoin.node=bitcoind \
                --bitcoind.rpcuser=bitcoinrpc \
                --bitcoind.rpcpass=hunter2 \
  