Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

ci: split nix config into separate lines in test:nix

gerrydorof631d9b8da12
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 022ad4a6b..3f699c62e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -136,8 +136,12 @@ test:nix:
# ("Path /builds/... is world-writable or a symlink. That's not allowed for security.").
# There is no way to have the runner hand us a non-world-writable checkout, so disable the
# (local) sandbox — this is the standard fix for Nix-on-GitLab shared runners, and is fine
- # here: the build runs as root in an ephemeral, trusted container.
- NIX_CONFIG: "experimental-features = nix-command flakes sandbox = false"
+ # here: the build runs as root in an ephemeral, trusted container. Each key must be on its
+ # own line (this is nix.conf content): cramming `sandbox = false` onto the same line as
+ # experimental-features would make Nix read `false`/`=`, etc. as more feature flags.
+ NIX_CONFIG: |
+ experimental-features = nix-command flakes
+ sandbox = false
# Point every Nix dir at the cacheable project dir instead of /nix (which GitLab cache
# cannot reach). `nix flake check` + the VM test + three package builds share this store,
# so a warm cache makes the job near-instant.