Erik Arvstedt
514c05ee47
tests/vmWithoutTests: poweroff on shell exit
...
This allows quitting the VM with Ctrl-D like in the minimal example VM.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
c12489d838
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.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
d5e50191d6
test/shellcheck-services: add configurable source prefix
...
This allows using this module for services defined outside of nix-bitcoin.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
b2bae90584
bitcoind: fix rare startup error
...
Previously, dhcpcd and bitcoind starting up in parallel could lead to
the following error in bitcoind:
```
bitcoind: libevent: getaddrinfo: address family for nodename not supported
bitcoind: Binding RPC on address 127.0.0.1 port 8332 failed.
bitcoind: Unable to bind any endpoint for
```
After the initial failure, the bitcoind service would always restart successfully.
This race condition, where both applications were simultaneously
manipulating network resources, was only triggered under specific
hardware conditions.
Fix it by running bitcoind after dhcp has started (by running after
`network-online.target`).
This bug and the fix only affect the default NixOS scripted
networking backend.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
f874c3b563
pkgs: add lnd 0.15.4 (hotfix)
...
Includes an emergency hotfix:
https://github.com/lightningnetwork/lnd/releases/tag/v0.15.4-beta
2023-06-01 02:56:22 -07:00
Erik Arvstedt
b3c134c01d
lnd: fix missing RPC permissions when bitcoind is pruned
2023-06-01 02:56:22 -07:00
Erik Arvstedt
29d1a6b8a8
test/shellcheck-services: fix error by excluding unavailable services
2023-06-01 02:56:22 -07:00
Erik Arvstedt
425a411e2b
test/shellcheck-services: simplify accessing service definitions
...
This also improves performance by removing the extra module evaluation.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
5e6b560fcf
tests: run flake-info in sandbox
...
Don't use sandboxing in Cirrus CI where namespace support is missing.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
bdb4ee0e0b
revert "tests: disable nixosSearch
"
2023-06-01 02:56:22 -07:00
Erik Arvstedt
d96c0a628a
btcpayserver: use new option certfilepath
for lnd
2023-06-01 02:56:22 -07:00
Erik Arvstedt
589860b842
Revert "pkgs: add lnd 0.15.2"
...
This reverts commit cf836b5d3b75a6c634391aa78a0113f540e637b9.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
ac4c01c374
update nixpkgs
...
btcpayserver: 1.6.10 -> 1.6.12
clightning: 0.12.0 -> 0.12.1
fulcrum: 1.8.1 -> 1.8.2
nbxplorer: 2.3.33 -> 2.3.41
2023-06-01 02:56:22 -07:00
Erik Arvstedt
effc1ce0a7
defaultHardening: allow syscall set_mempolicy
...
This syscall is safe to allow.
It's required by the dotnet runtime (btcpayserver, nbxplorer) update
introduced in the following commit.
2023-06-01 02:56:22 -07:00
Erik Arvstedt
48170b241c
pkgs: add lnd 0.15.2
...
Includes an emergency hotfix:
https://github.com/lightningnetwork/lnd/releases/tag/v0.15.2-beta
2023-06-01 02:56:22 -07:00
Jonas Nick
5a063aff00
update nixpkgs
...
electrs: 0.9.7 -> 0.9.9
elementsd: 0.21.0.2 -> 22.0
fulcrum: 1.7.0 -> 1.8.1
2023-06-01 02:56:22 -07:00
Jonas Nick
b25bccbdc6
clightning-plugins: update packages
2023-06-01 02:56:22 -07:00
Greg Shuflin
9a7e5e1921
Patch to prevent chmod
2022-09-20 19:34:12 -07:00
Jonas Nick
755da16a1b
Merge fort-nix/nix-bitcoin#529 : ShellCheck on scripts generated by nix
...
f3f8d650ab1e588fa6ad3041757493e84be4809c shellcheck: fix the lint warnings for other generated scripts (Otto Sabart)
acd341426a9b296ed7ceb2be9923a38c27b29ae8 shellcheck: prevent globbing and word splitting in package shell scripts (Otto Sabart)
c3b97e672854711c3d7b6206f93bbc430a0b15c7 tests: add `shellcheckServices` (Erik Arvstedt)
01fa900633415079ccad71fcf9d52373e02ccb47 shellcheck: fix setup-secrets.sh, spark-wallet (Erik Arvstedt)
ee15837244392cc70d36e085f590f58d3b3abab6 shellcheck: prevent globbing and word splitting in unit shell scripts (Otto Sabart)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK f3f8d650ab1e588fa6ad3041757493e84be4809c
jonasnick:
Concept ACK f3f8d650ab1e588fa6ad3041757493e84be4809c
Tree-SHA512: b7a8ae1e8db57e6bb1285832cdd52414913339344e6c6c72621e48404887ae214ed839364d3f2d272cc4b339812ee032e73040b60e6a9f1b9d189ecbae745772
2022-09-13 15:03:58 +00:00
Otto Sabart
f3f8d650ab
shellcheck: fix the lint warnings for other generated scripts
2022-09-12 21:00:00 +02:00
Otto Sabart
acd341426a
shellcheck: prevent globbing and word splitting in package shell scripts
2022-09-12 21:00:00 +02:00
Erik Arvstedt
c3b97e6728
tests: add shellcheckServices
2022-09-12 21:00:00 +02:00
Erik Arvstedt
01fa900633
shellcheck: fix setup-secrets.sh, spark-wallet
2022-09-12 21:00:00 +02:00
Otto Sabart
ee15837244
shellcheck: prevent globbing and word splitting in unit shell scripts
2022-09-12 21:00:00 +02:00
Jonas Nick
4e63301ac3
Merge fort-nix/nix-bitcoin#546 : Update nixpkgs
...
63f8b740268792d10475bdc8d203f50fa1641583 pyln-client: add patch that fixes plugins (Jonas Nick)
5255c7e8bc7f17d3b0bb0524350432a9c27dc8dc pyln-client: remove pkg patch that has become unnecessary (Jonas Nick)
c165836fd18a18f4b513a04d954f6ab4779208e4 bitcoind: add "getdeploymentinfo" to public rpc whitelist (Jonas Nick)
623c238b16bde9fcb5f6ef7d4f98036b37bd38e9 clightning-plugins: remove commando pkg and module (Jonas Nick)
33144262ecb263d4ce002ac61a531f4a6d524d67 clightning-plugins: bump ver of pyln-client required by prometheus (Jonas Nick)
9c766df16a0e58e25fa5ced1d4c05f7fae19425e Revert "clightning: fix build" (Jonas Nick)
b57e7466fb1aa15ee29d287046edc1c26b28d65d update nixpkgs (Jonas Nick)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK 63f8b740268792d10475bdc8d203f50fa1641583
Tree-SHA512: 699ce5179ee202218933424ac3fe746a405700daccad78109d8118013cba6d64d40b07a87430281cbde96438250a05b03be0e44ebb69d85e2d41ec3ae57d6c7e
2022-09-07 09:42:43 +00:00
Jonas Nick
ff04de6972
Merge fort-nix/nix-bitcoin#545 : test/lib/create-git-repo: fix variable quoting
...
49e30f7172b154f6fc9e6ad062d1f624e7120d58 test/lib/create-git-repo: fix empty var expansion (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 49e30f7172b154f6fc9e6ad062d1f624e7120d58
Tree-SHA512: 321f01bd8674e7cc91718e9799e3175cb640feb42ebac90588a60cdbe160b705aac4effa4cc229adc41c062c3cdf7ad90317a4dde90665d71141016faf2ce43a
2022-09-07 09:41:19 +00:00
Jonas Nick
63f8b74026
pyln-client: add patch that fixes plugins
...
Without this patch, the summary and feeadjuster plugins crash on startup.
2022-09-07 09:33:00 +00:00
Erik Arvstedt
49e30f7172
test/lib/create-git-repo: fix empty var expansion
...
When `amend` is empty, expand it to nothing instead of an empty
string (which causes a git error).
2022-09-07 11:02:15 +02:00
Jonas Nick
5255c7e8bc
pyln-client: remove pkg patch that has become unnecessary
2022-09-07 08:44:52 +00:00
Jonas Nick
c165836fd1
bitcoind: add "getdeploymentinfo" to public rpc whitelist
...
This is required by lnd 0.15.1.
2022-09-07 08:44:52 +00:00
Jonas Nick
623c238b16
clightning-plugins: remove commando pkg and module
...
clightning 0.12.0 ships with a reimplementation of the commando plugin that is
incompatible with the commando module that existed in nix-bitcoin.
2022-09-07 08:44:52 +00:00
Jonas Nick
33144262ec
clightning-plugins: bump ver of pyln-client required by prometheus
2022-09-07 08:44:51 +00:00
Jonas Nick
9c766df16a
Revert "clightning: fix build"
...
This reverts commit 321e8ba06efd05605ff13fe9087f099b5b4ec8dc which is not
necessary anymore due to the nixpkgs update.
2022-09-07 08:44:51 +00:00
Jonas Nick
b57e7466fb
update nixpkgs
...
btcpayserver: 1.6.9 -> 1.6.10
lnd: 0.15.0-beta -> 0.15.1-beta
2022-09-07 08:44:47 +00:00
Jonas Nick
462c2541d7
Merge fort-nix/nix-bitcoin#547 : tests: disable nixosSearch
...
7985e075e54bf083b9aa679556a4e027fb45f301 README: remove nixos-search (Erik Arvstedt)
c63da4734e50fd6d320227501947622ba1ba547f tests: disable `nixosSearch` (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 7985e075e54bf083b9aa679556a4e027fb45f301
Tree-SHA512: 3f6781ee7d6d026c36029fde47f146629d7c4eb59428fb1c2a904e1a36c8b4236f4b96c604c05f30063051eba2b6b3d13ceac44104590be61944d175b3f20638
2022-09-07 08:43:11 +00:00
Erik Arvstedt
7985e075e5
README: remove nixos-search
2022-09-07 10:24:16 +02:00
Erik Arvstedt
c63da4734e
tests: disable nixosSearch
2022-09-05 21:11:15 +02:00
Jonas Nick
6fed9b25cd
Merge fort-nix/nix-bitcoin#544 : joinmarket: 0.9.6 -> 0.9.7
...
b9d2a882a723db7b0e34b2711c1b0b6b2cae5641 joinmarket: 0.9.6 -> 0.9.7 (nixbitcoin)
Pull request description:
ACKs for top commit:
erikarvstedt:
ACK b9d2a882a723db7b0e34b2711c1b0b6b2cae5641
Tree-SHA512: 48f65f829f35b2b20d6fb95bd829db66bf7f11fcf97aad0c9e1673544f6420168f10a40fe3748d50c1f582c1be2b4ea7917dbbabb3661fa85cfff828fb56c8f7
2022-09-02 13:48:25 +00:00
nixbitcoin
b9d2a882a7
joinmarket: 0.9.6 -> 0.9.7
2022-09-02 11:11:26 +00:00
Jonas Nick
6145dc3032
Merge fort-nix/nix-bitcoin#539 : Minor improvements
...
67a573dae86ae43d30395864351b81ec03c8bef8 create-git-repo.sh: fix amend error if there's no branch checked out (Erik Arvstedt)
d9eecb7d4c23a38e9eb3a31a434e7139fed57f86 nixos-search/flake: remove unused output (Erik Arvstedt)
4e70db14bcebf24449146d97e7c77b789be0de95 README: fix capitalization (Erik Arvstedt)
030be842c847aa45679010aa47f519732ad7fa9d secrets: use fetchurl derivation (Erik Arvstedt)
1713e016a031c8d366af44c6a47ea8084ca9dda5 clightning-replication: clarify comment about FUSE mounts (Erik Arvstedt)
cd3878e35755a80a1f5e1d94e91b469807be3d23 delete modules/default.nix (Erik Arvstedt)
f2a4d1fe650637a245b5c5ae35ea8ddf49d8504b docs/security: fix typo (Erik Arvstedt)
3a65dc0dc954273cd6a212e880449fade3e58eaf docs/configuration: improve section `Remote bitcoind` (Erik Arvstedt)
af115d746b2f96793cf39a1d5c1b11393da9b493 internal scripts: use pinned, cached pkgs (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 67a573dae86ae43d30395864351b81ec03c8bef8
Tree-SHA512: 9ab2e9141793996eeae94cf2bb630491489a479841858187719fee9cf39e56b1db8bfc09f9466026b7409e160bb2047b374047ca4d2f7249077895c804663bd0
2022-08-29 11:38:48 +00:00
Erik Arvstedt
67a573dae8
create-git-repo.sh: fix amend error if there's no branch checked out
...
In this case, `git commit --amend` fails.
The state of a .git repo existing without a branch being checked out
can be reached through the following sequence of events (which I just
seem to have triggered):
1. The script calls `git init`
2. The user interrupts the script before `git commit` is finished
2022-08-29 00:12:19 +02:00
Erik Arvstedt
d9eecb7d4c
nixos-search/flake: remove unused output
2022-08-29 00:12:19 +02:00
Erik Arvstedt
4e70db14bc
README: fix capitalization
2022-08-29 00:12:18 +02:00
Erik Arvstedt
030be842c8
secrets: use fetchurl derivation
...
This moves fetching from eval time to build time, which is a better
fit for fetching build time resources.
2022-08-29 00:12:17 +02:00
Erik Arvstedt
1713e016a0
clightning-replication: clarify comment about FUSE mounts
2022-08-28 23:49:12 +02:00
Erik Arvstedt
cd3878e357
delete modules/default.nix
...
This file has been missing some modules for quite some time.
Remove it to simplify maintenance.
2022-08-28 23:49:12 +02:00
Erik Arvstedt
f2a4d1fe65
docs/security: fix typo
2022-08-28 23:49:12 +02:00
Erik Arvstedt
3a65dc0dc9
docs/configuration: improve section Remote bitcoind
2022-08-28 23:49:12 +02:00
Erik Arvstedt
af115d746b
internal scripts: use pinned, cached pkgs
...
Instead of setting up the script PATH via nix-shell, use
`nix shell` with inputs from the nix-bitcoin flake.
Advantages:
- Uses the nixpkgs version from the nix-bitcoin flake instead of
`<nixpkgs>` from the user env (NIX_PATH), so the script runtime
env is reproducible.
- The pkg derivations for the runtime env are cached, which greatly
increases script startup speed.
This commit was generated by running the following script inside the
repo root dir:
def transform(path, src)
if src =~ /#! *nix-shell +-i +bash +-p +(.*)/
pkgs = $1
if src =~ /^.*?(set -e.*?pipefail)\n/
set_statement = $1
src.sub!($&, '')
end
src.sub!(/\A.*?#! *nix-shell.*?\n/m, '')
parents = ([ '..' ] * (path.split('/').count - 1)).join('/')
[
'#!/usr/bin/env bash',
*set_statement,
%(. "${BASH_SOURCE[0]%/*}/#{parents}/helper/run-in-nix-env" "#{pkgs}" "$@"),
nil,
src
].join("\n")
end
end
Dir['**/*.sh'].each do |f|
src = File.read(f)
if new_src = transform(f, src)
puts "Changed file #{f}"
File.write(f, new_src)
end
end
2022-08-28 23:49:12 +02:00
Jonas Nick
4cd9d0c6de
Merge fort-nix/nix-bitcoin#542 : rtl: 0.13.0 -> 0.13.1, clightning-rest: 0.8.0 -> 0.9.0
...
02f15995033bed01e6a50361ce569061ac1195cd clightning-rest: 0.8.0 -> 0.9.0 (Erik Arvstedt)
c3769014b17c8caef4349f24fb6412a3949f919a rtl: 0.13.0 -> 0.13.1 (Erik Arvstedt)
Pull request description:
ACKs for top commit:
jonasnick:
ACK 02f15995033bed01e6a50361ce569061ac1195cd
Tree-SHA512: b3bc9937ab3bb19702686c459ce920adaf83972c96c26568f7b0447f2ca200552e873e33120785268f86c582b575befb4b163fe8fae5eefe445ebd0b7244e334
2022-08-28 19:08:32 +00:00