This commit is contained in:
Mike Heier 2023-08-12 08:40:32 -04:00
parent f3877f8b0b
commit 1f7e540751
2 changed files with 6 additions and 18 deletions

View File

@ -8,16 +8,9 @@
let
productVersion = "0.4.1";
productName = "blockstream-electrs";
myModule = import ./module.nix { inherit nixpkgs; };
in
flake-utils.lib.eachDefaultSystem (system:
with nixpkgs.legacyPackages.${system}; {
nixosModules = {
# add moduleA from flakeA as an output
# moduleA = flakeA.nixosModules.moduleA;
default = import ./module.nix;
};
packages =
{
default =
@ -51,15 +44,10 @@
nativeBuildInputs = [ cargo clang ];
};
# modules = [
# # Include the module in the system configuration
# import ./module.nix { inherit nixpkgs; }
# ];
# nixosModules.${productName} = ./module.nix;
# nixosModules.default = nixosModules.${productName};
# nixosModules.default = { config, pkgs, lib, ... }: {
# imports = [ ./module.nix ];
# };
nixosModules = {
# add moduleA from flakeA as an output
# moduleA = flakeA.nixosModules.moduleA;
default = import ./module.nix;
};
});
}

View File

@ -77,7 +77,7 @@ in {
# electrs only uses the working directory for reading electrs.toml
WorkingDirectory = cfg.dataDir;
ExecStart = ''
${pkgs.blockstream-electrs}/bin/electrs \
${config.pkgs.blockstream-electrs}/bin/electrs \
--log-filters=INFO \
--network=${bitcoind.makeNetworkName "bitcoin" "regtest"} \
--db-dir='${cfg.dataDir}' \