cleanup
This commit is contained in:
parent
f3877f8b0b
commit
1f7e540751
22
flake.nix
22
flake.nix
|
@ -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;
|
||||
};
|
||||
});
|
||||
}
|
|
@ -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}' \
|
||||
|
|
Loading…
Reference in New Issue
Block a user