diff --git a/modules/btcpayserver.nix b/modules/btcpayserver.nix index 1e1f45f..751614f 100644 --- a/modules/btcpayserver.nix +++ b/modules/btcpayserver.nix @@ -210,9 +210,9 @@ in { install -m 600 ${configFile} '${cfg.btcpayserver.dataDir}/settings.config' ${optionalString (cfg.btcpayserver.lightningBackend == "lnd") '' { - echo -n "${lndConfig}"; + echo -n "${lndConfig}" ${pkgs.openssl}/bin/openssl x509 -noout -fingerprint -sha256 -in ${config.nix-bitcoin.secretsDir}/lnd-cert \ - | sed -e 's/.*=//;s/://g'; + | sed -e 's/.*=//;s/://g' } >> '${cfg.btcpayserver.dataDir}/settings.config' ''} ''; diff --git a/pkgs/krops/get-sha256.sh b/pkgs/krops/get-sha256.sh index 91b4049..d7cd792 100755 --- a/pkgs/krops/get-sha256.sh +++ b/pkgs/krops/get-sha256.sh @@ -5,7 +5,7 @@ set -euo pipefail archive_hash () { repo=$1 rev=$2 - nix-prefetch-url --unpack "https://github.com/${repo}/archive/${rev}.tar.gz" 2> /dev/null | tail -n 1 + nix-prefetch-url --unpack "https://github.com/${repo}/archive/${rev}.tar.gz" 2> /dev/null } echo "Fetching latest krops commit"