makeShell: use actual system configuration in generate-secrets
This fixes a bug where the version update message for v0.0.65 is erroneously triggered because the krops config is not included when evaluating secrets.
This commit is contained in:
parent
2e22bbdcc7
commit
1af84e8b7e
|
@ -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