Skip to content

Commit

Permalink
Merge #711: update nixpkgs
Browse files Browse the repository at this point in the history
b26cea0 update nixpkgs (Jonas Nick)

Pull request description:

ACKs for top commit:
  erikarvstedt:
    ACK b26cea0

Tree-SHA512: 1c947307f0e89c89b931ee2c66675544a0fd37d878bf80acc940bdd023d2f0576b0b02a098ed36fe93bb334b877027f22077e3039fe8a609c2230a53e860fd17
  • Loading branch information
jonasnick committed Jul 3, 2024
2 parents efd8ea7 + b26cea0 commit 652b67e
Show file tree
Hide file tree
Showing 10 changed files with 88 additions and 21 deletions.
8 changes: 7 additions & 1 deletion examples/deploy-container-minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ cat > "$tmpDir/configuration.nix" <<EOF
password = "a";
};
# When WAN is disabled, DNS bootstrapping slows down service startup by ~15 s
services.clightning.extraConfig = "disable-dns";
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
disable-dns
disable-plugin=offers
'';
}
EOF

Expand Down
7 changes: 7 additions & 0 deletions examples/deploy-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ read -rd '' src <<EOF || true
$(realpath "$configuration")
];
nix-bitcoin.generateSecrets = true;
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
disable-plugin=offers
'';
};
};
}
Expand Down
7 changes: 7 additions & 0 deletions examples/deploy-qemu-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ nix-build --out-link "$tmpDir/vm" - <<'EOF'
<qemu-vm/vm-config.nix>
];
nix-bitcoin.generateSecrets = true;
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
disable-plugin=offers
'';
};
}).config.system.build.vm
EOF
Expand Down
7 changes: 7 additions & 0 deletions examples/krops-vm-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@
<nix-bitcoin/modules/deployment/krops.nix>
<qemu-vm/vm-config.nix>
];

# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
disable-plugin=offers
'';
}
10 changes: 8 additions & 2 deletions examples/qemu-vm/minimal-vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ rec {

nix-bitcoin.generateSecrets = true;
services.clightning.enable = true;
# For faster startup in offline VMs
services.clightning.extraConfig = "disable-dns";
# disable-dns leads to faster startup in offline VMs
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
disable-dns
disable-plugin=offers
'';

# Avoid lengthy build of the nixos manual
documentation.nixos.enable = false;
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion test/clightning-replication.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ let

# TODO-EXTERNAL:
# When WAN is disabled, DNS bootstrapping slows down service startup by ~15 s.
extraConfig = "disable-dns";
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
extraConfig = ''
disable-dns
disable-plugin=offers
'';
};
};
in
Expand Down
34 changes: 25 additions & 9 deletions test/nixos-search/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion test/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ let

# TODO-EXTERNAL:
# When WAN is disabled, DNS bootstrapping slows down service startup by ~15 s.
services.clightning.extraConfig = mkIf config.test.noConnections "disable-dns";
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
${optionalString config.test.noConnections "disable-dns"}
disable-plugin=offers
'';
test.data.clightning-plugins = let
plugins = config.services.clightning.plugins;
removed = [
Expand Down
8 changes: 7 additions & 1 deletion test/wireguard-lndconnect.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ makeTestVM {
};
# TODO-EXTERNAL:
# When WAN is disabled, DNS bootstrapping slows down service startup by ~15 s.
services.clightning.extraConfig = "disable-dns";
# TODO-EXTERNAL:
# When bitcoind is not fully synced, the offers plugin in clightning 24.05
# crashes (see https://github.com/ElementsProject/lightning/issues/7378).
services.clightning.extraConfig = ''
disable-dns
disable-plugin=offers
'';

services.lnd = {
enable = true;
Expand Down

0 comments on commit 652b67e

Please sign in to comment.