Erik Arvstedt
1645451275
helper: add start-bash-session.sh
2023-06-01 02:56:22 -07:00
Erik Arvstedt
a7bc488b17
nodeinfo: extract fn mkInfoLong
...
This is required by the mempool extension flake.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
9184db69dd
improve comments
...
The comment in python-packackges was obsolete.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
0c354ee9eb
rtl: make extraConfig
recursively mergeable
...
Previously, when merging different definitions of `extraConfig`,
only the top-level attrset was merged.
Example:
The two separate settings
nodes.lnd.extraConfig.Settings.userPersona = "MERCHANT";
nodes.lnd.extraConfig.Settings.logLevel = "DEBUG";
were previously merged into
nodes.lnd.extraConfig.Settings = { logLevel = "DEBUG" };
(The last definition has precedence.)
2023-06-01 02:56:22 -07:00
Erik Arvstedt
c9cfcf695f
treewide: use bool literals for systemd
...
Run this from the repo root to check that there are no more remaining
bool strings:
grep -P '"true"|"false"' -r --exclude-dir=.git
2023-06-01 02:56:22 -07:00
Erik Arvstedt
f0ca489867
rtl: 0.13.2 -> 0.13.4
2023-06-01 02:56:22 -07:00
Erik Arvstedt
de49082f2a
update nixpkgs
...
btcpayserver: 1.7.2 -> 1.7.3
electrs: 0.9.10 -> 0.9.11
hwi: 2.1.1 -> 2.2.0
2023-06-01 02:56:22 -07:00
Erik Arvstedt
22e41d5c06
add dev helper and docs
2023-06-01 02:56:22 -07:00
Erik Arvstedt
740dd666ad
docs: move test docs from examples/README
to test/README
2023-06-01 02:56:22 -07:00
Erik Arvstedt
1e21feb257
docs/configuration: fix typo
2023-06-01 02:56:22 -07:00
Erik Arvstedt
e7407d9efe
tests: add example scenario customTest
2023-06-01 02:56:22 -07:00
Erik Arvstedt
cfeddd44aa
tests: formatting
...
Move line next to `services.lnd` config for clarity.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
49229a3e2d
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-06-01 02:56:22 -07:00
Erik Arvstedt
c237f1302f
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-06-01 02:56:22 -07:00
Erik Arvstedt
d119c207b9
versioning: add fulcrum db change info
2023-06-01 02:56:22 -07:00
Jonas Nick
4d637adf57
update nixpkgs
...
btcpayserver: 1.7.1 -> 1.7.2
fulcrum: 1.8.2 -> 1.9.0
nbxplorer: 2.3.49 -> 2.3.54
2023-06-01 02:56:22 -07:00
Erik Arvstedt
94659f3326
examples/deploy-container: fix sudo
env propagation
...
Env vars can't be reliably passed through `sudo`, so always
call nix-shell to setup the env after running sudo.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
0e35b8a79a
nix-bitcoin/runAsUserCmd: remove workaround
2023-06-01 02:56:22 -07:00
Erik Arvstedt
e6ce10a478
joinmarket: fix Python packages
2023-06-01 02:56:22 -07:00
Erik Arvstedt
d6cb65fbde
clightning: fix Python packages
...
Patching `pyln-proto` to use cryptography 38 lets
us avoid adding many older Python pkg versions.
The backwards incompatible changes from cryptography 36 to 38
only include the removal of deprecated fns that pyln-proto
doesn't use.
See string "BACKWARDS INCOMPATIBLE" in
https://cryptography.io/en/latest/changelog/
2023-06-01 02:56:22 -07:00
Erik Arvstedt
2737e8374c
pythonPackages: improve layout
...
- Move the creation of the joinmarket Python pkgs from
`joinmarket/default.nix` to `pkgs/python-packages/default.nix`.
- Move definitions of old pkg versions from the main Python pkgs
to the joinmarket Python pkgs.
These old versions are only required by joinmarket.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
c3d2072b58
pythonPackages: add indentation
...
This makes the following commit more readable.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
f603cb6101
treewide: use mdDoc
for descriptions
...
Enable markdown syntax (instead of docbook) for descriptions.
This only affects external doc tooling that renders the descriptions.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
e96ff7075e
treewide: rename maintainer earvstedt
-> erikarvstedt
2023-06-01 02:56:22 -07:00
Erik Arvstedt
ba54d3d699
shellcheck-services.nix: update to NixOS 22.11
2023-06-01 02:56:22 -07:00
Erik Arvstedt
2e5b287bc8
test: update to NixOS 22.11
2023-06-01 02:56:22 -07:00
Erik Arvstedt
7a2c1efd5d
flake: remove 32-bit systems
2023-06-01 02:56:22 -07:00
Erik Arvstedt
2156b4410d
update to NixOS 22.11
...
This includes no pkg version updates.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
bf7dc0f27a
helper/update-flake: support updating NixOS versions
2023-06-01 02:56:22 -07:00
JayDeLux
85aa6f8ede
minor typo
2023-06-01 02:56:22 -07:00
Erik Arvstedt
f3fdab1d76
rtl: 0.13.1 -> 0.13.2
2023-06-01 02:56:22 -07:00
nixbitcoin
de4dccb006
joinmarket: 0.9.7 -> 0.9.8
2023-06-01 02:56:22 -07:00
Jonas Nick
bc72ad94b3
clightning: set "database-upgrade=true" for 22.11.1
2023-06-01 02:56:22 -07:00
Jonas Nick
6b7b23cd6e
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
2023-06-01 02:56:22 -07:00
Jonas Nick
de4797be1f
update nixpkgs
...
bitcoin: 23.0 -> 24.0
bitcoind: 23.0 -> 24.0
charge-lnd: 0.2.12 -> 0.2.13
2023-06-01 02:56:22 -07:00
Erik Arvstedt
761898f380
lnd: support INADDR_ANY
addresses for bitcoind.zmqpubraw*
...
Also use `mkDefault` when defining `bitcoind.zmqpubraw*` to simplify
overriding for users.
2023-06-01 02:56:22 -07:00
Jonas Nick
206deaf2b3
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
2023-06-01 02:56:22 -07:00
Jonas Nick
c263aec335
Revert "pkgs: add lnd 0.15.4 (hotfix)"
...
This reverts commit 57b76d4461
.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
9c61850621
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
2023-06-01 02:56:22 -07:00
Erik Arvstedt
45bfc181fc
clightning: extract var bitcoind
...
Follow the default module formatting style.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
4bb95d1e29
examples/vm-config: fix syntax error
2023-06-01 02:56:22 -07:00
Erik Arvstedt
a1a27857e7
examples/minimal-vm: add lightning-cli
demo command
2023-06-01 02:56:22 -07:00
Erik Arvstedt
6dd365e719
treewide: set shebang for bash scripts
...
These scripts previously failed when called with syscalls like
`execve` (used by, e.g., Python's `subprocess.run`) that use no default
interpreter for scripts without a shebang.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
e68cb010ba
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.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
f4f4808d59
nodeinfo: rename nodeinfoLib
-> lib
2023-06-01 02:56:22 -07:00
Erik Arvstedt
32db35d1bf
tests: move mkIfTest
to nix-bitcoin.lib
2023-06-01 02:56:22 -07:00
Erik Arvstedt
bd5d70813f
flake: expose supportedSystems
2023-06-01 02:56:22 -07:00
Erik Arvstedt
d70fc7d71b
nixos-search/flake: formatting
2023-06-01 02:56:22 -07:00
Erik Arvstedt
820a71f34f
flake: rename input nixpkgsUnstable
-> nixpkgs-unstable
...
This follows common flake naming conventions.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
ab23466fb7
tests/container: don't require services.clightning
to be defined
2023-06-01 02:56:22 -07:00