Merge fort-nix/nix-bitcoin#452: makeShell: use final system configuration in generate-secrets
1af84e8b7e
makeShell: use actual system configuration in `generate-secrets` (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACK1af84e8b7e
Tree-SHA512: d4d2808f627d45e152b2ae7224ccdadd93e727066086cf9dfe3c6ee674773da556e7c8a077794d6dc8f1df4f2a1a41c4f3abfbb3c7ebaca70d8152cd53295ab6
This commit is contained in:
commit
827107c807
@ -77,7 +77,11 @@ pkgs.stdenv.mkDerivation {
|
||||
|
||||
generate-secrets() {(
|
||||
set -euo pipefail
|
||||
genSecrets=$(nix-build --no-out-link -I nixos-config="${cfgDir}/configuration.nix" \
|
||||
config="${cfgDir}/krops/krops-configuration.nix"
|
||||
if [[ ! -e $config ]]; then
|
||||
config="${cfgDir}/configuration.nix"
|
||||
fi
|
||||
genSecrets=$(nix-build --no-out-link -I nixos-config="$config" \
|
||||
'<nixpkgs/nixos>' -A config.nix-bitcoin.generateSecretsScript)
|
||||
mkdir -p "${cfgDir}/secrets"
|
||||
(cd "${cfgDir}/secrets"; $genSecrets)
|
||||
|
Loading…
Reference in New Issue
Block a user