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
Jonas Nick
c7e5de3b2b
Merge fort-nix/nix-bitcoin#760 : Fix test persistentContainerExample
...
b8f6343ee4 fix test `persistentContainerExample` (Erik Arvstedt)
b36867c845 examples/container: use faster `destroy` cmd (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK b8f6343ee4
Tree-SHA512: 2649f7f93698c1b072f0c9a92cbb24ae770904f5c390e7869fec3dc9941022029ee70918f517d4c77ee5aed02b79f65d1deaeef775dc027a3d7ef741eb7ec81a
2025-01-24 08:18:14 +00:00
Jonas Nick
f47727b28a
Merge fort-nix/nix-bitcoin#759 : test/README: mention Flakes requirement
...
6486bca30f test/README: mention Flakes requirement (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 6486bca30f
Tree-SHA512: a1c4e2cf2595306587bf411174a2271a9b2a5b526225b5e7bf2453c779c82a28f28279535df1a257186f0a1a2a940e1cea40c8f84bc8c6a815afdd833125df01
2025-01-24 08:05:30 +00:00
Erik Arvstedt
6486bca30f
test/README: mention Flakes requirement
2025-01-22 20:48:12 +01:00
Erik Arvstedt
b8f6343ee4
fix test persistentContainerExample
...
This test requires `electrs` to be enabled.
Also, by using `electrs` instead of `clightning` we avoid the bug
where clightning hangs at startup when internet access is unavailable.
Due to technical limititations, internet access is available in NixOS
containers only after the container has started.
2025-01-22 20:41:52 +01:00
Erik Arvstedt
b36867c845
examples/container: use faster destroy cmd
...
This skips evaluating the container system derivation.
2025-01-22 20:31:30 +01:00
Jonas Nick
dc4d14e073
Merge fort-nix/nix-bitcoin#758 : update nixpkgs
...
ed163fece1 update nixpkgs (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK ed163fece1
Tree-SHA512: 671d40ed9e545a8076e67c29e32f74fd071d1d0f388c57e6204120d96a8a58e92f1559ddb33620e11f1260f0843ff5ceeb49bde0cbfb966f6ecbaeabd173270f
2025-01-21 17:52:17 +00: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
1113d2cedb
Merge fort-nix/nix-bitcoin#754 : container example: add clightning to flake, remove electrs
...
306b30cf62 container example: add clightning to flake, remove electrs (Sean Gilligan)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK 306b30cf62
Tree-SHA512: eaba319734a8263d809d9d9365316b43b36d64996a2b04849bb0c827f342f3350acc0b34e33dec396d5cb41fd77a9cab882fbb66129a7fd6e1cca242e7e33ebe
2024-12-18 21:47:58 +00:00
Sean Gilligan
306b30cf62
container example: add clightning to flake, remove electrs
...
Some of the commands listed in usage.sh require clightning to be
enabled. This commit enables clightning so they will work. It also
removes electrs to keep things simple, since electrs is not in
usage.sh
2024-12-18 10:17:34 -08:00
Jonas Nick
33dbb41d58
Merge fort-nix/nix-bitcoin#753 : update nixpkgs
...
64bfc3f3a0 update nixpkgs (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK 64bfc3f3a0
Tree-SHA512: 0d0283e62c1ebab57828b35556925fd315ed2ec64f89f2d188bd3ec92f66854cd4c1e25989aac3882438d393190c5a3b11e51af82a0abaff9eca0ada8e1c30bb
2024-12-18 07:47:26 +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
Jonas Nick
32b59a6b84
Merge fort-nix/nix-bitcoin#750 : Update to NixOS 24.11
...
b5e5974b8a flake: update extra-container (Erik Arvstedt)
2d53b57636 tests.py: fix syntax warning (Erik Arvstedt)
09ba739719 nbxplorer: remove deprecated option (Erik Arvstedt)
d6bae0a9eb python3Packages.clnrest: update to NixOS 24.11 (Erik Arvstedt)
b78116b0da python3Packages.clnrest: use `--replace-fail` (Erik Arvstedt)
dc8f969eea python3Packages.pyln-proto: update to NixOS 24.11 (Erik Arvstedt)
8af7fc4b80 python3Packages.joinmarket: update to NixOS 24.11 (Erik Arvstedt)
c66a6aab3a python3Packages.joinmarket: allow Python 3.12 (Erik Arvstedt)
3ce3a000b2 modules: update to NixOS 24.11 (Erik Arvstedt)
a3ded4cf74 update to NixOS 24.11 (Erik Arvstedt)
ba46d20a25 update-flake.sh: add workflow for updating the NixOS version (Erik Arvstedt)
f60a50607d update-flake.sh: remove support for Nix < 2.19 (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK b5e5974b8a
Tree-SHA512: a252a2e20266924c58877aebe03a25ef65166cf8404ecf6a5f8a0b0eb5bf569ec5f13894d08723058c8d6b354378c609cb626f6866f152b06d26e8a73181f02c
2024-12-17 08:09:51 +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
09ba739719
nbxplorer: remove deprecated option
...
Fixes this warning:
Explorer: Options 'automigrate' is obsolete and ignored...
2024-12-14 10:52:26 +01:00
Erik Arvstedt
d6bae0a9eb
python3Packages.clnrest: update to NixOS 24.11
...
Gunicorn 22 and 23 mostly include security fixes:
https://github.com/benoitc/gunicorn/releases
2024-12-14 10:52:26 +01:00
Erik Arvstedt
b78116b0da
python3Packages.clnrest: use --replace-fail
2024-12-14 10:52:26 +01:00
Erik Arvstedt
dc8f969eea
python3Packages.pyln-proto: update to NixOS 24.11
...
Cryptography contains no relevant backwards-incompatible changes:
https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#4300---2024-07-20
2024-12-14 10:52:26 +01:00
Erik Arvstedt
8af7fc4b80
python3Packages.joinmarket: update to NixOS 24.11
...
- Cryptography contains no relevant backwards-incompatible changes
https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst#4300---2024-07-20
- Txtorcon 24.8.0 is a minor maintenance release:
https://github.com/meejah/txtorcon/releases/tag/v24.8.0
2024-12-14 10:52:26 +01:00
Erik Arvstedt
c66a6aab3a
python3Packages.joinmarket: allow Python 3.12
...
Python 3.12 is the default in Nixos 24.11.
All tests succeed with Python 3.12.
Context:
Related issue:
https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/1589
This issue contains no hints on what changes caused joinmarket to be
incompatible/compatible with Python 3.12.
The restriction to Python <3.12 was added
here (https://github.com/JoinMarket-Org/joinmarket-clientserver/pull/1587 )
in Oct 2023.
This post
(https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/1589#issuecomment-2119278070 )
in the above issue mentions on 2024-05-19 that tests are running again
with Python 3.12.
The current joinmarket version (0.9.11) was released on 2024-02-22.
2024-12-14 10:52:26 +01:00
Erik Arvstedt
3ce3a000b2
modules: update to NixOS 24.11
2024-12-14 10:52:26 +01:00
Erik Arvstedt
a3ded4cf74
update to NixOS 24.11
2024-12-14 10:52:26 +01:00
Erik Arvstedt
ba46d20a25
update-flake.sh: add workflow for updating the NixOS version
2024-12-14 10:52:26 +01:00
Erik Arvstedt
f60a50607d
update-flake.sh: remove support for Nix < 2.19
...
Nix 2.24 is the default in NixOS 24.11.
This is required by the following commit that uses a `flake update`
command syntax only supported by Nix >= 2.19.
2024-12-13 23:22:22 +01:00
Jonas Nick
5dd5b899eb
Merge fort-nix/nix-bitcoin#752 : rtl: 0.15.2 -> 0.15.4
...
50cafcaf8e rtl: 0.15.2 -> 0.15.4 (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 50cafcaf8e
Tree-SHA512: dcfc8d534151a11e4a291b37b724c28716a14cf6c8633fdc4a6b913af98a920cc0722932d43a1a761996f2abe1e4f240e79b87b64098a1cac18f20d99e0213b6
2024-12-13 21:21:38 +00:00
Erik Arvstedt
50cafcaf8e
rtl: 0.15.2 -> 0.15.4
2024-12-13 19:50:23 +01:00
Jonas Nick
ff847d527c
Merge fort-nix/nix-bitcoin#748 : update nixpkgs
...
b9019d170d test: remove clightning TODO-EXTERNAL requiring to disable offers (Jonas Nick)
7fb481cf58 update nixpkgs (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK b9019d170d
Tree-SHA512: 0f18de71c4f98e29ccccc9150c8138fcaf860f6e7813ec9ee6ed76efec2340c35edfdbe75f0b6bb59b4fe407f0e1f9579ed5cda6f970bfb66625398f5a80161f
2024-12-02 20:44:12 +00: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
Jonas Nick
64fb83b742
Merge fort-nix/nix-bitcoin#688 : rtl: 0.14.1 -> 0.15.4, add clightning.plugins.clnrest
...
daa3bfbae3 lndconnect: add clnrest (Erik Arvstedt)
87b929bc99 wireguard-lndconnect: remove obsolete workaround (Erik Arvstedt)
d682cb95c8 README: remove `clightning-rest` (Erik Arvstedt)
ad2a128471 rtl: use clnrest (Erik Arvstedt)
4e9c153f9c rtl: 0.14.1 -> 0.15.4 (Erik Arvstedt)
e74ddd9464 clightning.plugins.clnrest: init (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK daa3bfbae3
Tree-SHA512: ce6994977287998f41134d445824e8d4a162715d94604704b8706a7f27947aae98e97de296977d6e392df9300d71dc44e2c1c77a6f99ca515d99dc93b4f7eb91
2024-11-27 21:17:04 +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
d682cb95c8
README: remove clightning-rest
...
`clightning-rest` will be deprecated soon.
2024-11-27 21:35:46 +01:00
Erik Arvstedt
ad2a128471
rtl: use clnrest
...
Using `clightning-rest` is no longer supported by rtl.
2024-11-27 21:35:46 +01:00
Erik Arvstedt
4e9c153f9c
rtl: 0.14.1 -> 0.15.4
2024-11-27 18:48:24 +01:00
Erik Arvstedt
e74ddd9464
clightning.plugins.clnrest: init
2024-11-27 18:48:24 +01:00
Jonas Nick
c0994bfc7b
Merge fort-nix/nix-bitcoin#744 : update nixpkgs
...
2f986c80e5 update nixpkgs (Jonas Nick)
76ea066809 trustedcoin: 0.8.2 -> 2024-11-15 (Erik Arvstedt)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK 2f986c80e5
Tree-SHA512: 2824fc5f2c0f5586d1912c237a0b129387a913283d70840c6c4020e168bf924814b335796e863a64b97f6d60aced0e65fd10561fb3c1d4a33542dc235df46d25
2024-11-16 14:57:49 +00: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
667dae2b39
Merge fort-nix/nix-bitcoin#745 : lnd: make ExecStartPost extensible
...
ca96e1959e lnd: make `ExecStartPost` extensible (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK ca96e1959e
Tree-SHA512: 6f0d9f6adbb81b4f58f03c2ab2a70c1f8dc5148f8aba3ea93be68d8be0236edcca7087e673a998052ec3c390ff78b6c009d16ad22f9e600e5c9a683e73f16580
2024-11-08 08:07:18 +00:00
Erik Arvstedt
ca96e1959e
lnd: make ExecStartPost extensible
...
By wrapping the value in a list, users can add other `ExecStartPost` scripts.
The previous scalar value could only be replaced, but not merged with
other definitions.
2024-11-06 16:48:30 +01:00
Jonas Nick
951c61b8ec
Merge fort-nix/nix-bitcoin#742 : update nixpkgs
...
e77108e1be update nixpkgs (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK e77108e1be
Tree-SHA512: 1197372a0dff62ad31d93ee780a0cc791a1b6b24b14592f9e85a8e4b0ccffb9da28c9687073b709fa0bb232df79a0d5fad4c5ac6cdb587a6bd923959950260a3
2024-10-29 10:12:20 +00:00
Jonas Nick
e77108e1be
update nixpkgs
...
electrs: 0.10.5 -> 0.10.6
2024-10-08 09:40:34 +00:00
Jonas Nick
a0d36d5924
Merge fort-nix/nix-bitcoin#737 : update nixpkgs
...
328a28ec9c update nixpkgs (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 328a28ec9c
Tree-SHA512: a7c7db492c776ef25baf840772f78c9a9b1b8537b773086459983e0a8bf420c081201a89519acf319c45fef29f43c247d43e5a5e6bdc6981b86bc67727be98b9
2024-09-25 07:01:44 +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
548f17d868
Merge fort-nix/nix-bitcoin#735 : update nixpkgs
...
2baff274c4 update nixpkgs (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK 2baff274c4
Tree-SHA512: 511b9e8f11db497a8de50a4af019d44d592eeb0bcc5582380fb4162e2c7c1a617bc59b302e5869d887c8c13f491be62f44f89a13e62ec0aff9c273e5a433cedb
2024-09-16 07:25:52 +00: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
901f1250fd
Merge fort-nix/nix-bitcoin#733 : btcpayserver: fix lnd with "bind to any" restAddress
...
8e34b25164 btcpayserver: fix lnd with "bind to any" `restAddress` (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
utACK 8e34b25164
Tree-SHA512: b89c1502e1f9efd892cbbdda778a3752e671e3a57a412d154d92f6dd5c7c148bc02ac3fdd7af0626f38cfe95b53dfb8251fa487f7770aa8476a3089faded51c4
2024-08-29 20:00:36 +00:00
Erik Arvstedt
8e34b25164
btcpayserver: fix lnd with "bind to any" restAddress
2024-08-29 20:34:36 +02:00