X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fscripts%2Fsetup;fp=nixops%2Fscripts%2Fsetup;h=38cee65e91a4d758aef097c1b464aba8d9e9324f;hb=08822d6f730053c97cfd9c27111b4302d9a94081;hp=929b27a3b6db719114fb594b03e49a74b6cb9aaf;hpb=df6dc0852edb79874314c4cd0f303a19340034ea;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/scripts/setup b/nixops/scripts/setup index 929b27a..38cee65 100755 --- a/nixops/scripts/setup +++ b/nixops/scripts/setup @@ -93,6 +93,19 @@ if [ ! -f /etc/ssh/ssh_rsa_key_nixops ]; then fi fi +if nix show-config --json | jq -e '.sandbox.value == "true"' >/dev/null; then + cat <<-EOF + There are some impure derivations in the repo currently (grep __noChroot), please put + sandbox = "relaxed" + in /etc/nix/nix.conf + you may also want to add + keep-outputs = true + keep-derivations = true + to prevent garbage collector from deleting build dependencies (they take a lot of time to build) + EOF + exit 1 +fi + if ! which nixops 2>/dev/null >/dev/null; then cat <<-EOF nixops is needed: