examples: use relative paths to example files

This ensures that the examples files from the current example dir are used.
Previously, the default examples from the nix-bitcoin source were used.
This commit is contained in:
Erik Arvstedt 2021-03-08 15:11:14 +01:00 committed by Jonas Nick
parent a4dabc7390
commit cb3d5446c8
No known key found for this signature in database
GPG Key ID: 4861DBF262123605
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ read -d '' src <<EOF || true
extra.enableWAN = true;
config = { pkgs, config, lib, ... }: {
imports = [
<nix-bitcoin/examples/${configuration}>
<${configuration}>
<nix-bitcoin/modules/secrets/generate-secrets.nix>
];
};

View File

@ -38,7 +38,7 @@ nix-build --out-link $tmpDir/vm - <<EOF
(import <nixpkgs/nixos> {
configuration = {
imports = [
<nix-bitcoin/examples/configuration.nix>
<configuration.nix>
<nix-bitcoin/modules/secrets/generate-secrets.nix>
];
virtualisation.graphics = false;