Jonas Nick
7736468466
Merge fort-nix/nix-bitcoin#597 : Integrate trustedcoin clightning plugin
...
a3c654768c
docs: trustedcoin: add info about possible problems (Otto Sabart)
67f2eb2feb
trustedcoin: explicitly use the HTTPS_PROXY for external connections (Otto Sabart)
4942130abe
tests: add tests for trustedcoin clightning plugin (Otto Sabart)
8c00c26fa1
trustedcoin: update to v0.6.1 (Otto Sabart)
5b5e76931d
trustedcoin: fix shellcheck (Otto Sabart)
3d26f72b7f
clightning-plugins: add trustedcoin (neverupdate)
c747ddbf32
readme: reference trustedcoin source (neverupdate)
35fc3a2b44
trustedcoin: add module (neverupdate)
3197338d81
trustedcoin: add pkg (neverupdate)
Pull request description:
ACKs for top commit:
jonasnick:
ACK a3c654768c
Tree-SHA512: 81075d051c500b533ac979530645ccb596c57cf93cf695419eda9f13575863b1cece0cb9a423fc669d96b97a19ba6a49012a1abef310f904df99b90762c5c943
2023-04-17 11:21:48 +00:00
Jonas Nick
5506d5e0df
update nixpkgs
...
electrs: 0.9.11 -> 0.9.13
elementsd: 22.1 -> 22.1.1
2023-04-16 12:39:01 +00:00
Otto Sabart
4942130abe
tests: add tests for trustedcoin clightning plugin
2023-04-11 21:00:00 +02:00
Jonas Nick
a9644a0e2b
update nixpkgs
2023-04-02 18:10:58 +00:00
Jonas Nick
d3c98698e0
update nixpkgs
...
clightning: 23.02 -> 23.02.2
2023-03-19 19:58:38 +00:00
Jonas Nick
282c45b746
Merge fort-nix/nix-bitcoin#575 : Improve lndconnect
, support WireGuard
...
cea69b73d2
nodeinfo: enable required option `nix-bitcoin.operator` (Erik Arvstedt)
27d95fda85
nodeinfo/lnd: add `onion_rest_address` (Erik Arvstedt)
54a21874ae
nodeinfo/lnd: add `rest_address` (Erik Arvstedt)
a4bfefd562
add `presets/wireguard.nix` (Erik Arvstedt)
477e1709fb
lndconnect: update to Zeus 0.7.1 (Erik Arvstedt)
f996ef37d9
lnd, clightning-rest: remove `lndconnectOnion`, add generic option `lndconnect` (Erik Arvstedt)
b4bc621b8c
rename `lndconnect-onion.nix` -> `lndconnect.nix` (Erik Arvstedt)
907cfe4f4c
docs/services: improve title, fix numbering (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK cea69b73d2
Tree-SHA512: 747d95b49f5c1b63dfaa2c6bc302fb102e3788c36e279cc28266ea230e8daae54973d8bdb51f2a81e7e84eb86b6b1e504fbe8af85c2318525c54d901678b3f55
2023-03-13 12:55:59 +00:00
Erik Arvstedt
a4bfefd562
add presets/wireguard.nix
...
This allows using `lndconnect` via a direct WireGuard connection.
2023-03-11 20:10:54 +01:00
Jonas Nick
b82eb458af
update nixpkgs
...
clightning: 22.11.1 -> 23.02
hwi: 2.2.0 -> 2.2.1
2023-03-07 21:08:35 +00:00
Erik Arvstedt
f996ef37d9
lnd, clightning-rest: remove lndconnectOnion
, add generic option lndconnect
...
For both lnd and clightning-rest, `lndconnectOnion` is replaced by
options `lndconnect.enable` and `lndconnect.onion`.
This allows using lndconnect without Tor.
2023-02-27 14:39:29 +01:00
Jonas Nick
3480232f2a
update nixpkgs
...
btcpayserver: 1.7.3 -> 1.7.12
elementsd: 22.0.2 -> 22.1
nbxplorer: 2.3.54 -> 2.3.62
Also add new required argument to flake-info in CI test script.
2023-02-27 12:43:41 +00:00
Jonas Nick
475af2d6cb
Merge fort-nix/nix-bitcoin#586 : Misc. improvements
...
addfa8ec6b
test: support `run`, `debug` commands in basic NixOS tests (Erik Arvstedt)
ae733d887e
tests/clightning-replication: reuse `pkgs` instance (Erik Arvstedt)
6cbd0d93ae
tests: rename `clightningReplication` -> `clightning-replication` (Erik Arvstedt)
85310b533a
secrets: use type `lines` for `generateSecretsCmds` (Erik Arvstedt)
bc2f66d4f1
bitcoind, liquid: increase start/stop timeouts (Erik Arvstedt)
519ae31202
netns-isolation: improve formatting (Erik Arvstedt)
a1023696e6
netns-isolation: reserve netns id for mempool (Erik Arvstedt)
34fe8675bd
add option `nix-bitcoin.pkgOverlays` (Erik Arvstedt)
a3bdecb10b
helper: add start-bash-session.sh (Erik Arvstedt)
690a8f6256
nodeinfo: extract fn `mkInfoLong` (Erik Arvstedt)
2af642f56a
improve comments (Erik Arvstedt)
5634f08873
rtl: make `extraConfig` recursively mergeable (Erik Arvstedt)
b76728a1ec
treewide: use bool literals for systemd (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK addfa8ec6b
Tree-SHA512: 46f779f8477b566ffc6d0dfb024f2098757f509b2b3e0cbb509cf3308de7029e913f6e6c3d6d3d226cc72f8a5031fd5586b2efdf7c2d9d15f4bdd7ed08b27425
2023-02-03 13:11:41 +00:00
Erik Arvstedt
addfa8ec6b
test: support run
, debug
commands in basic NixOS tests
...
Currently, this only affects the basic NixOS test `clightning-replication`.
2023-02-02 10:51:41 +01:00
Erik Arvstedt
ae733d887e
tests/clightning-replication: reuse pkgs
instance
...
This reduces eval time by 30%.
2023-02-02 10:51:41 +01:00
Erik Arvstedt
6cbd0d93ae
tests: rename clightningReplication
-> clightning-replication
...
The test name now matches the file name.
2023-02-02 10:51:41 +01:00
Erik Arvstedt
56c2abd91a
update nixpkgs
...
btcpayserver: 1.7.2 -> 1.7.3
electrs: 0.9.10 -> 0.9.11
hwi: 2.1.1 -> 2.2.0
2023-01-25 23:57:29 +01:00
Jonas Nick
84fc4d48d3
Merge fort-nix/nix-bitcoin#574 : Add dev helper and docs
...
b4d7e1aa8f
add dev helper and docs (Erik Arvstedt)
b35d08d3f2
docs: move test docs from `examples/README` to `test/README` (Erik Arvstedt)
4d76eb9183
docs/configuration: fix typo (Erik Arvstedt)
dc0710f3f4
tests: add example scenario `customTest` (Erik Arvstedt)
9e30d2728b
tests: formatting (Erik Arvstedt)
c6d85c6fe3
tests: fix broken unit file when clightning is disabled (Erik Arvstedt)
a51f7b419e
run-tests: use arg instead of env var for scenario overrides (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK b4d7e1aa8f
Tree-SHA512: f0ed8f8fe326c64eac3b7e9f48597dd00eedb9244333e199d18d1c2c06f369cd015f77aefd48e87235a68aee0b352057249525bf015e0a564fda380bdf7bb9d1
2023-01-18 20:53:24 +00:00
Erik Arvstedt
b4d7e1aa8f
add dev helper and docs
2023-01-15 20:28:49 +01:00
Erik Arvstedt
b35d08d3f2
docs: move test docs from examples/README
to test/README
2023-01-15 20:28:48 +01:00
Erik Arvstedt
dc0710f3f4
tests: add example scenario customTest
2023-01-15 20:28:48 +01:00
Jonas Nick
aae4b6bfc5
update nixpkgs
...
btcpayserver: 1.7.1 -> 1.7.2
fulcrum: 1.8.2 -> 1.9.0
nbxplorer: 2.3.49 -> 2.3.54
2023-01-06 22:53:47 +00:00
Erik Arvstedt
9e30d2728b
tests: formatting
...
Move line next to `services.lnd` config for clarity.
2023-01-06 23:46:43 +01:00
Erik Arvstedt
c6d85c6fe3
tests: fix broken unit file when clightning is disabled
...
Previously, an incomplete clightning unit was always created because
attr `clightning` was always defined in option attrset `systemd.services`.
2023-01-06 23:46:43 +01:00
Erik Arvstedt
a51f7b419e
run-tests: use arg instead of env var for scenario overrides
...
This removes a source of implicit state and guarantees that regular
calls to `run-tests.sh` always run the builtin tests.
2023-01-06 23:46:43 +01:00
Erik Arvstedt
109dccca27
treewide: use mdDoc
for descriptions
...
Enable markdown syntax (instead of docbook) for descriptions.
This only affects external doc tooling that renders the descriptions.
2022-12-18 20:01:52 +01:00
Erik Arvstedt
9e456ea3a9
shellcheck-services.nix: update to NixOS 22.11
2022-12-18 20:01:52 +01:00
Erik Arvstedt
77d58162e7
test: update to NixOS 22.11
2022-12-18 20:01:52 +01:00
Jonas Nick
875fac6862
update nixpkgs
...
btcpayserver: 1.6.12 -> 1.7.1
bitcoind: 24.0 -> 24.0.1
clightning: 0.12.1 -> 22.11.1
lnd: 0.15.4-beta -> 0.15.5-beta
nbxplorer: 2.3.41 -> 2.3.49
2022-12-14 14:48:54 +00:00
Jonas Nick
d9fdc49e9a
update nixpkgs
...
bitcoin: 23.0 -> 24.0
bitcoind: 23.0 -> 24.0
charge-lnd: 0.2.12 -> 0.2.13
2022-11-28 12:54:11 +00:00
Jonas Nick
81350a03c9
Merge fort-nix/nix-bitcoin#570 : Update nixpkgs
...
a333989ca8
update nixpkgs (Jonas Nick)
313e374774
Revert "pkgs: add lnd 0.15.4 (hotfix)" (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK a333989ca8
Tree-SHA512: cf9a0c42002f00eadcb6e97211358210c6ab214f467b25af23c70477c40134b3d9a26c7ff00ec15d5a06f2a4bfe9832b11e6ae0faa136249c1180f5ae2e59734
2022-11-10 12:56:47 +00:00
Jonas Nick
a333989ca8
update nixpkgs
...
electrs: 0.9.9 -> 0.9.10
elementsd: 22.0 -> 22.0.2
extra-container: 0.10 -> 0.11
lnd: 0.15.2-beta -> 0.15.4-beta
2022-11-10 11:03:23 +00:00
Erik Arvstedt
0de16095e1
clightning-replication: switch system before waiting for server sshd
...
This is primarily a cosmetic change.
- Increases code clarity because all system test blocks now start with `switch_to_system`
- Optimizes dependency ordering because `switch_to_system` has no
dependency on the server sshd
2022-11-04 11:51:44 +01:00
Erik Arvstedt
edbaeb9813
tests: define tests via flake
...
Advantages:
- Pure test evaluations
- The test framework can now be used by flakes that extend nix-bitcoin
- Most features of `run-tests.sh` are now accessible via `nix build`/`nix run`.
We keep `run-tests.sh` for advanced features like `scenarioOverridesFile` and adhoc scenarios.
Other changes:
- `run-tests.sh` now builds aggregate VM tests like `basic` or
`buildable` by creating all VMs in a single evaluation.
This speeds up the tests and eases debugging by separating the eval and build steps.
- Use the new `nix` CLI which has improved build output logging
by prefixing output lines with the origin drv name.
2022-11-03 23:08:06 +01:00
Erik Arvstedt
8eaa4cce30
tests: move mkIfTest
to nix-bitcoin.lib
2022-11-03 23:08:06 +01:00
Erik Arvstedt
b0dfa69e84
nixos-search/flake: formatting
2022-11-03 23:08:05 +01:00
Erik Arvstedt
a12b701e75
tests/container: don't require services.clightning
to be defined
2022-11-03 23:08:05 +01:00
Erik Arvstedt
450de19803
tests/run-tests.sh: print examples before running
...
This eases debugging example failures.
2022-11-03 23:08:05 +01:00
Erik Arvstedt
5f1bb2a8fc
tests/copy-src: always copy .git dir
...
This is required by a later commit that introduces flakes-based test
evaluation. Evaluating local flakes needs a repo dir.
2022-11-03 23:08:05 +01:00
Erik Arvstedt
a87a59a86b
make-container.sh: improve root handling
...
Don't auto-switch to root when executing make-container.sh, because
auto root switching is also implemented in extra-container.
Besides simplifying the code, this is useful for a later commit that
introduces flakes-based container building.
With this change, the container is built under the regular user
instead of root, thereby utilizing the user's regular fetcher and
evaluation caches.
2022-11-03 23:08:05 +01:00
Erik Arvstedt
73d2fbb448
add compatibility with Nix PR #6530 (Source tree abstraction
)
...
Avoid adding flake resource paths to the store (via string
interpolation).
This reduces performance and can lead to modules getting imported
twice, once through a local path and once through a store path.
This might not be needed in a future Nix release, in which case we can
revert this.
2022-11-03 23:08:05 +01:00
Erik Arvstedt
3c816b862c
tests/vmWithoutTests: poweroff on shell exit
...
This allows quitting the VM with Ctrl-D like in the minimal example VM.
2022-11-03 23:08:04 +01:00
Erik Arvstedt
1d3f49f8da
tests, example: avoid lengthy documentation build
...
This options manual rebuild takes 30-60s and is triggered by the extra
NixOS options defined by nix-bitcoin.
2022-11-03 23:08:04 +01:00
Erik Arvstedt
b840548d40
test/shellcheck-services: add configurable source prefix
...
This allows using this module for services defined outside of nix-bitcoin.
2022-11-03 23:08:04 +01:00
Jonas Nick
7c16fc5865
Merge fort-nix/nix-bitcoin#563 : lnd: fix missing RPC permissions when bitcoind is pruned
...
67949a002a
lnd: fix missing RPC permissions when bitcoind is pruned (Erik Arvstedt)
49303be2e0
test/shellcheck-services: fix error by excluding unavailable services (Erik Arvstedt)
46f17fe313
test/shellcheck-services: simplify accessing service definitions (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 67949a002a
Tree-SHA512: 28652d8ec67a164aef068f3df32d1ae8df4e0920cafedc6e3d568b631333b29e57f7370e54a82e7cde9710a3df0a1494ed94272af101d31dd7859a08bb363e4b
2022-10-28 08:38:28 +00:00
Erik Arvstedt
67949a002a
lnd: fix missing RPC permissions when bitcoind is pruned
2022-10-25 22:56:51 +02:00
Erik Arvstedt
49303be2e0
test/shellcheck-services: fix error by excluding unavailable services
2022-10-25 22:36:30 +02:00
Erik Arvstedt
46f17fe313
test/shellcheck-services: simplify accessing service definitions
...
This also improves performance by removing the extra module evaluation.
2022-10-25 22:36:30 +02:00
Erik Arvstedt
277510c7ee
tests: run flake-info in sandbox
...
Don't use sandboxing in Cirrus CI where namespace support is missing.
2022-10-25 22:04:17 +02:00
Erik Arvstedt
d3b7e8c432
revert "tests: disable nixosSearch
"
2022-09-23 09:04:57 +02:00
Jonas Nick
261f7a043f
update nixpkgs
...
electrs: 0.9.7 -> 0.9.9
elementsd: 0.21.0.2 -> 22.0
fulcrum: 1.7.0 -> 1.8.1
2022-09-22 16:57:19 +00:00
Erik Arvstedt
c3b97e6728
tests: add shellcheckServices
2022-09-12 21:00:00 +02:00