From 8f7dcb6e2a08ddf57f09645d6ebc08c3b52785af Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Sat, 8 Aug 2026 06:47:57 +0000 Subject: [PATCH] containers: fix for NixOS 26.05 --- dev/dev.sh | 1 + examples/container/flake.nix | 3 +++ examples/deploy-container.sh | 2 ++ test/lib/extra-container-workaround.nix | 24 ++++++++++++++++++++++++ test/lib/make-test.nix | 13 ++++++++++++- test/lib/test-lib.nix | 2 +- test/run-tests.sh | 7 ++++++- 7 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 test/lib/extra-container-workaround.nix diff --git a/dev/dev.sh b/dev/dev.sh index 125561c..2e50447 100644 --- a/dev/dev.sh +++ b/dev/dev.sh @@ -82,6 +82,7 @@ read -rd '' src <<'EOF' || : inherit (nix-bitcoin.inputs) nixpkgs; # legacyInstallDirs = true; config = { + imports = [ ../test/lib/extra-container-workaround.nix ]; containers.nb-adhoc = { # bindMounts."/shared" = { hostPath = "/my/hostpath"; isReadOnly = false; }; extra.addressPrefix = "10.200.255"; diff --git a/examples/container/flake.nix b/examples/container/flake.nix index 64bac2f..e20e4b2 100644 --- a/examples/container/flake.nix +++ b/examples/container/flake.nix @@ -31,6 +31,9 @@ # legacyInstallDirs = true; config = { + # See the file for why this is needed and when it can be removed + imports = [ (nix-bitcoin.outPath + "/test/lib/extra-container-workaround.nix") ]; + containers.mynode = { # Always start container along with the container host autoStart = true; diff --git a/examples/deploy-container.sh b/examples/deploy-container.sh index 9ec0bc1..8a9bb9d 100755 --- a/examples/deploy-container.sh +++ b/examples/deploy-container.sh @@ -75,6 +75,8 @@ fi # read -rd '' src <