aboutsummaryrefslogtreecommitdiff
path: root/tests/ca/post-hook.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ca/post-hook.sh')
-rwxr-xr-xtests/ca/post-hook.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ca/post-hook.sh b/tests/ca/post-hook.sh
new file mode 100755
index 000000000..1c9d4f700
--- /dev/null
+++ b/tests/ca/post-hook.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+source common.sh
+
+requireDaemonNewerThan "2.4pre20210626"
+
+sed -i 's/experimental-features .*/& ca-derivations ca-references nix-command flakes/' "$NIX_CONF_DIR"/nix.conf
+
+export NIX_TESTS_CA_BY_DEFAULT=1
+cd ..
+source ./post-hook.sh
+
+