bitcoin server fixes

This commit is contained in:
Bryan Ramos 2025-01-11 21:58:38 -05:00
parent 10e8a34586
commit fc37abef96
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
3 changed files with 18 additions and 18 deletions

View file

@ -11,13 +11,13 @@ clean:
echo "Cleaning build artifacts" echo "Cleaning build artifacts"
if [ -d result ]; then if [ -d result ]; then
echo "Removing result directory..." echo "Removing result directory..."
rm ./result; rm ./result
fi fi
if ls *.qcow2 1> /dev/null 2>&1; then if ls *.qcow2 1> /dev/null 2>&1; then
echo "Removing virtual disk..." echo "Removing virtual disk..."
rm ./*.qcow2; rm ./*.qcow2
fi fi
echo "All clean!" echo "Done"
# Output what derivations will be built # Output what derivations will be built
out TYPE SYSTEM="desktop": out TYPE SYSTEM="desktop":

View file

@ -18,10 +18,10 @@ in
nixpkgs.overlays = [ nixpkgs.overlays = [
(final: prev: { (final: prev: {
bitcoind = prev.bitcoind.overrideAttrs (old: rec { bitcoind = prev.bitcoind.overrideAttrs (old: rec {
version = "27.0"; version = "28.0";
src = fetchTarball { src = fetchTarball {
url = "https://github.com/bitcoin/bitcoin/archive/refs/tags/v${version}.tar.gz"; url = "https://github.com/bitcoin/bitcoin/archive/refs/tags/v${version}.tar.gz";
sha256 = "sha256-U2tR3WySD3EssA3a14wUtA3e0t/5go0isqNZSSma7m4="; sha256 = "sha256-LLtw6pMyqIJ3IWHiK4P3XoifLojB9yMNMo+MGNFGuRY=";
}; };
}); });
}) })

View file

@ -15,19 +15,19 @@ let
in in
{ options.modules.system.bitcoin.electrum = { enable = mkEnableOption "Electrs Server"; }; { options.modules.system.bitcoin.electrum = { enable = mkEnableOption "Electrs Server"; };
config = mkIf (cfg.enable && btc.enable) { config = mkIf (cfg.enable && btc.enable) {
nixpkgs.overlays = [ #nixpkgs.overlays = [
(final: prev: { # (final: prev: {
electrs = prev.electrs.overrideAttrs (old: rec { # electrs = prev.electrs.overrideAttrs (old: rec {
version = "0.10.4"; # version = "0.10.4";
src = pkgs.fetchFromGitHub { # src = pkgs.fetchFromGitHub {
owner = "romanz"; # owner = "romanz";
repo = "electrs";
rev = "${version}"; # rev = "${version}";
hash = "sha256-4c+FGYM34LSfazzshfRPjA+0BvDL2tvkSr2rasUognc="; # hash = "sha256-4c+FGYM34LSfazzshfRPjA+0BvDL2tvkSr2rasUognc=";
}; # };
}); # });
}) # })
]; #];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
electrs electrs