Commit Graph
391 Commits
Author SHA1 Message Date
Jonas Nick d0bd5b2874 update nixpkgs 2026-05-18 18:50:29 +00:00
Jonas Nick f9a0e469d5 update nixpkgs
bitcoin: 30.2 -> 31.0
bitcoind: 30.2 -> 31.0
clboss: 0.15.1 -> 0.16.0
clightning: 25.12.1 -> 26.04.1
elementsd: 23.3.2 -> 23.3.3
lightning-loop: 0.31.5-beta -> 0.33.0-beta

lightning-loop 0.31.7+ blocks until lnd's chain notifier is ready
(lightninglabs/loop@bde49d7a), so the workaround sleep added in the
previous commit is no longer needed for lightning-loop. The
lightning-pool workaround stays — pool has no equivalent fix and
isn't actively maintained.

Note: nbxplorer test fails (presumed incompatibility with bitcoin 31).
2026-05-11 08:15:49 +00:00
Jonas Nick 4c22a3c594 update nixpkgs
bitcoin: 30.0 -> 30.2
bitcoind: 30.0 -> 30.2
bitcoind-knots: 29.2.knots20251110 -> 29.3.knots20260210
btcpayserver: 2.2.1 -> 2.3.4
clightning: 25.09.2 -> 25.12.1
elementsd: 23.2.4 -> 23.3.2
lnd: 0.19.3-beta -> 0.20.1-beta

lnd 0.20 makes its chain notifier subsystem ready later in startup
than its RPC server. lightning-loop and lightning-pool both subscribe
to chain notifications right after dialing lnd, which fails before
the notifier is up and crashes the daemon. Add a 5s ExecStartPre
sleep to both services as a temporary workaround.
2026-05-11 08:14:22 +00:00
Jonas Nick d7e27c44c9 update nixpkgs 2026-01-05 08:12:04 +00:00
Erik Arvstedt 72e220d998 containers: use native systemd FUSE support
Since version 257 (NixOS 25.05), systemd-nspawn automatically creates a
/dev/fuse node in the container when the host's FUSE node is accessible
to the nspawn process:
https://github.com/systemd/systemd/pull/34067
2025-12-27 12:40:53 +01:00
Erik Arvstedt 7b215e6ca1 extra-container: 0.13 -> 0.14
Adds support for NixOS 25.11
2025-12-24 08:34:27 +01:00
Jonas Nick 2a59766cb1 flake-info: fix patch after upstream reformatting
`add_arg_pair` call was changed to multi-line format.
2025-12-23 10:45:43 +01:00
Jonas Nick bde29b84f7 Update nixpkgs
electrs: 0.10.10 -> 0.11.0
2025-12-18 08:38:21 +00:00
Erik Arvstedt bba75b0a7f support running joinmarket with bitcoind 29 2025-10-23 08:15:34 +02:00
Erik Arvstedt 1c786d67c6 update nixpkgs
bitcoin: 29.1 -> 30.0
bitcoind: 29.1 -> 30.0
bitcoind-knots: 29.1.knots20250903 -> 29.2.knots20251010
clboss: 0.14.1 -> 0.15.1
2025-10-23 08:15:34 +02:00
Erik Arvstedt 3a13b5f77c ci/test-info.nix: read scenarios from github workflow file
Simplifies maintenance, both files no longer need to be kept in sync.
2025-10-21 07:10:47 +02:00
Jonas Nick 14d0b33d20 update nixpkgs
bitcoind-knots: 28.1.knots20250305 -> 29.1.knots20250903
charge-lnd: 0.3.0 -> 0.3.1
clightning: 25.05 -> 25.09
2025-10-07 09:19:22 +00:00
Erik Arvstedt 81ac8735bd update nixpkgs
bitcoind: 29.0 -> 29.1
btcpayserver: 2.1.6 -> 2.2.1
2025-09-12 09:11:04 +02:00
Erik Arvstedt 0c02330001 update nixpkgs
lnd: 0.19.2-beta -> 0.19.3-beta
2025-09-05 20:44:09 +02:00
Erik Arvstedt 6bc5747951 run-tests: fix tmpDir being deleted before it's used
In `buildTests`, `nixInstantiate` is called in a subshell.
When `tmpDir` is unset before the call, the tmpdir is created in the
subshell and gets deleted before subshell exit (via `trap`).
But subsequent code accesses the tmpdir, which has now been deleted,
leading to an error.

This bug has been undetected for a long time because bash 5.2 has a
bug [1] where `trap` is not always executed, causing the tmpdir to never be deleted.
Bash 5.3 (introduced in NixOS 25.05) now works correctly and exposes the bug.

Fix it by creating the tmpdir before the subshell call.

[1] https://mail.gnu.org/archive/html/help-bash/2024-07/msg00007.html
2025-08-18 13:28:00 +02:00
Jonas Nick 5deb0b4342 Merge fort-nix/nix-bitcoin#801: Update nixpkgs
da2a683393 update nixpkgs (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK da2a683393

Tree-SHA512: c2923fd8f0d17c865198733e60c74659628accbf10b6afd259e188b33f167abfba54964165579269fafb3fe46643479f02dde7f7f2a4f9232a697d34960329df
2025-08-16 07:28:38 +00:00
Erik Arvstedt 9f8dc58f85 ci: group job output, print eval results
Useful for debugging.
2025-08-11 22:15:48 +02:00
Erik Arvstedt da2a683393 update nixpkgs
electrs: 0.10.9 -> 0.10.10
2025-08-10 19:06:23 +02:00
Erik Arvstedt 17f057cb08 update nixpkgs
btcpayserver: 2.1.5 -> 2.1.6
lnd: 0.19.1-beta -> 0.19.2-beta
2025-07-20 22:50:22 +02:00
Jonas Nick e2ca2e4967 Merge fort-nix/nix-bitcoin#795: CI: Switch from Cirrus to Github Actions
5516bcc43b ci: switch from Cirrus to Github Actions (Erik Arvstedt)
7d33e9d5e9 tests: extract fn `instantiateTestsFromStr` (Erik Arvstedt)

Pull request description:

ACKs for top commit:
  jonasnick:
    ACK 5516bcc43b

Tree-SHA512: 1aa23ffc52c8e9b7efd38fbf31be9bab7a7e187571c6bee8c1dbdb8eb14f90995b260d10f0d3d9968d6e9be1be452d22173d9775fd6d42a94a01f41ab3305d21
2025-07-03 08:16:40 +00:00
Erik Arvstedt 042f4af4fa update nixpkgs
btcpayserver: 2.1.1 -> 2.1.5
clightning: 25.02.2 -> 25.05
lightning-loop: 0.31.1-beta -> 0.31.2-beta
lnd: 0.19.0-beta -> 0.19.1-beta
2025-06-29 15:10:42 +02:00
Erik Arvstedt 5516bcc43b ci: switch from Cirrus to Github Actions 2025-06-26 23:26:57 +02:00
Erik Arvstedt 7d33e9d5e9 tests: extract fn instantiateTestsFromStr
Fn `instantiateTests` now takes an array of strings.
It is used in the following commit.
2025-06-26 23:23:51 +02:00
Erik Arvstedt fd84c576f4 update nixpkgs
lightning-loop: 0.28.8-beta -> 0.31.1-beta
lnd: 0.18.5-beta -> 0.19.0-beta
2025-06-11 15:30:27 +02:00
Erik Arvstedt fb56684999 ci: enable parallel building
Use `nix build --print-build-logs` to prefix the build output with the
name of its derivation.
This helps to distinguish build outputs when output is interleaved in
parallel builds.
2025-06-10 13:45:57 +02:00
Erik Arvstedt a52bf46031 treewide: streamline bash error reporting
- Show the script file name
- Use common line number format that allows opening
  file at line in editors
2025-06-10 13:45:57 +02:00
Erik Arvstedt 81112a0553 mempool: 2.5.0 -> 3.2.1 2025-06-02 10:46:54 +02:00
Erik Arvstedt b111cf9c57 update nixpkgs
btcpayserver: 2.1.0 -> 2.1.1
charge-lnd: 0.2.13 -> 0.3.0
clightning: 25.02.1 -> 25.02.2
2025-05-25 12:02:31 +02:00
Erik Arvstedt 411b131c3a test: remove clightning plugin start timeout patch
Unneded because the timeout has been increased upstream:
https://github.com/ElementsProject/lightning/commit/ee3133f19885269985180bd20e0b9737c70cf86c
2025-05-09 13:56:33 +02:00
Jonas Nick 6e3c5db5f5 update nixpkgs
bitcoin: 28.1 -> 29.0
bitcoind: 28.1 -> 29.0
btcpayserver: 2.0.7 -> 2.1.0
clightning: 24.11.1 -> 25.02.1
fulcrum: 1.11.1 -> 1.12.0.1
nbxplorer: 2.5.23 -> 2.5.25
2025-05-05 12:40:09 +00:00
Erik Arvstedt 8f99c63303 update nixpkgs
btcpayserver: 1.13.7 -> 2.0.7
nbxplorer: 2.5.17 -> 2.5.23

Co-authored-by: Erik Arvstedt <erik.arvstedt@gmail.com>
2025-03-11 19:36:26 +00:00
Erik Arvstedt 3872f893dc update nixpkgs
electrs: 0.10.8 -> 0.10.9
lnd: 0.18.4-beta -> 0.18.5-beta
nbxplorer: 2.5.16 -> 2.5.17
2025-02-14 15:51:16 +01:00
Erik Arvstedt 4aaef5fdf4 services: use wants dependency where possible
Let A be a service that depends on another service B.
When A can gracefully handle failures and restarts of B, use
```
wants = [ "B.service" ];
after = [ "B.service" ];
```
instead of
```
requires = [ "B.service" ];
after = [ "B.service" ];
```
in the definition of A.

This way, A keeps running when B is stopped or restarted after a failure.
With `requires`, A is instead stopped when B is stopped or restarted due to a failure.

This brings two benefits:

1. Improved uptime
Examples:
- RTL keeps running when one lightning node has failed
- btcpayserver keeps running and accepting on-chain payments when the lightning node has crashed

2. Avoids a systemd bug where depending units (`A.service` in the
above example) are not restarted when their dependency fails
(issue github/systemd#18856, no full link to avoid spamming the issue).
In real world nix-bitcoin deployments, this issue was only likely to
appear when clightning failed during activation, causing depending
units (like `RTL`) to stop and not be restarted.
All services depending on `clightning` have now been changed to use
`wants`, thereby avoiding the bug.

Services `electrs` and `lightning-loop` fail when their respective
dependencies stop, so these services have not been changed.
I also haven't changed services `joinmarket` and
`joinmarket-yieldgenerator`. Further manual testing is needed to
determine if they can be switched to `wants`.
2025-01-29 20:44:26 +01:00
Erik Arvstedt 6486bca30f test/README: mention Flakes requirement 2025-01-22 20:48:12 +01:00
Jonas Nick ed163fece1 update nixpkgs
bitcoin: 28.0 -> 28.1
bitcoind: 28.0 -> 28.1
clightning: 24.11 -> 24.11.1
electrs: 0.10.7 -> 0.10.8
extra-container: 0.12 -> 0.13
lnd: 0.18.3-beta -> 0.18.4-beta
2025-01-21 16:51:29 +00:00
Jonas Nick 64bfc3f3a0 update nixpkgs
Pkg updates in nixpkgs stable:
btcpayserver: 1.13.5 -> 1.13.7
nbxplorer: 2.5.7 -> 2.5.16

Pkg updates in nixpkgs unstable:
clboss: 0.14.0 -> 0.14.1
clightning: 24.08.2 -> 24.11
electrs: 0.10.6 -> 0.10.7
elementsd: 23.2.1 -> 23.2.4
2024-12-17 09:22:23 +00:00
Erik Arvstedt b5e5974b8a flake: update extra-container
Adds support for NixOS 24.11
2024-12-14 10:52:27 +01:00
Erik Arvstedt 2d53b57636 tests.py: fix syntax warning
Fixes this warning from the NixOS VM test script linter:
SyntaxWarning: invalid escape sequence '\['
2024-12-14 10:52:27 +01:00
Erik Arvstedt 3ce3a000b2 modules: update to NixOS 24.11 2024-12-14 10:52:26 +01:00
Jonas Nick b9019d170d test: remove clightning TODO-EXTERNAL requiring to disable offers 2024-12-01 13:40:02 +00:00
Jonas Nick 7fb481cf58 update nixpkgs
clightning: 24.08.1 -> 24.08.2
lightning-loop: 0.24.1-beta -> 0.28.8-beta
nbxplorer: 2.5.6 -> 2.5.7
2024-12-01 13:09:47 +00:00
Erik Arvstedt daa3bfbae3 lndconnect: add clnrest 2024-11-27 21:35:46 +01:00
Erik Arvstedt 87b929bc99 wireguard-lndconnect: remove obsolete workaround 2024-11-27 21:35:46 +01:00
Erik Arvstedt e74ddd9464 clightning.plugins.clnrest: init 2024-11-27 18:48:24 +01:00
Jonas Nick 2f986c80e5 update nixpkgs
bitcoin: 27.1 -> 28.0
bitcoind: 27.1 -> 28.0
clboss: 0.13.3 -> 0.14.0
2024-11-15 19:37:56 +01:00
Erik Arvstedt 76ea066809 trustedcoin: 0.8.2 -> 2024-11-15
Supports bitcoind 28.0.
2024-11-15 19:37:56 +01:00
Jonas Nick e77108e1be update nixpkgs
electrs: 0.10.5 -> 0.10.6
2024-10-08 09:40:34 +00:00
Erik Arvstedt 328a28ec9c update nixpkgs
clightning: 24.08 -> 24.08.1
fulcrum: 1.11.0 -> 1.11.1
hwi: 3.0.0 -> 3.1.0
2024-09-23 19:58:47 +02:00
Jonas Nick 2baff274c4 update nixpkgs
btcpayserver: 1.13.1 -> 1.13.5
clightning: 24.05 -> 24.08
lnd: 0.18.2-beta -> 0.18.3-beta
nbxplorer: 2.5.2 -> 2.5.6
2024-09-14 19:12:35 +00:00
Jonas Nick 9e0aa29a27 update nixpkgs
clboss: 0.13.2 -> 0.13.3
2024-08-26 12:36:28 +00:00