aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2021-11-12 16:02:32 +0100
committerregnat <rg@regnat.ovh>2021-11-12 16:02:32 +0100
commit83af9550a166ece787bbea6014d827d3e3af277b (patch)
treead6f89b2a8bb304fd9d2e924d67ac00c798b5c97
parent30496af5980fd03706f587eef014e630e9d9d318 (diff)
Add a test for the `--accept-flake-config` option
-rw-r--r--tests/flake-local-settings.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/flake-local-settings.sh b/tests/flake-local-settings.sh
index c037431c8..6ee6b17d6 100644
--- a/tests/flake-local-settings.sh
+++ b/tests/flake-local-settings.sh
@@ -25,11 +25,5 @@ cat <<EOF > flake.nix
}
EOF
-# Ugly hack for testing
-mkdir -p .local/share/nix
-cat <<EOF > .local/share/nix/trusted-settings.json
-{"post-build-hook":{"$PWD/echoing-post-hook.sh":true}}
-EOF
-
-nix build
+nix build --accept-flake-config
test -f post-hook-ran || fail "The post hook should have ran"